上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 在XeLaTeX里直接使用\includegraphics{test.png}这样的命令引入PNG,可能会发现图片直接被缩放到占满文档宽度,这是因为PNG这种bitmap类型的图片里通常不会带上metadata,因此就自动能放多宽放多宽。解决办法有用Imagemagick之类的工具给PNG图片加上m... 阅读全文
posted @ 2014-10-18 23:21 Joyee 阅读(1095) 评论(0) 推荐(0) 编辑
摘要: 最近发现了JavaScript Garden这个JS黑魔法收集处,不过里面有一些东西并没有说得很透彻,于是边看边查文档or做实验,写了一些笔记,顺手放在博客。等看完了You don't know JS讲this和prototype的部分,说不定又会再写一点。函数名字是可选的通常用匿名函数的地方,匿名... 阅读全文
posted @ 2014-10-11 04:46 Joyee 阅读(5918) 评论(1) 推荐(6) 编辑
摘要: DescriptionDr lee cuts a string S into N pieces,s[1],…,s[N]. Now, Dr lee gives you these N sub-strings: s[1],…s[N]. There might be several possibiliti... 阅读全文
posted @ 2014-09-28 20:09 Joyee 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: DescriptionCraig is fond of planes. Making photographs of planes forms a major part of his daily life. Since he tries to stimulate his social life, an... 阅读全文
posted @ 2014-09-28 20:04 Joyee 阅读(354) 评论(0) 推荐(0) 编辑
摘要: DescriptionMost bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attached to one of the ... 阅读全文
posted @ 2014-09-28 19:59 Joyee 阅读(570) 评论(0) 推荐(0) 编辑
摘要: DescriptionIn the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Play... 阅读全文
posted @ 2014-09-26 22:08 Joyee 阅读(2109) 评论(0) 推荐(0) 编辑
摘要: DescriptionDNA (Deoxyribonucleic acid) is founded in every living creature as the storage medium for genetic information. It is comprised of subunits ... 阅读全文
posted @ 2014-09-24 23:05 Joyee 阅读(1319) 评论(0) 推荐(0) 编辑
摘要: 写这篇随笔的动机是之前实习的时候出了自定义皮肤的需求,但是由于整个项目一开始前端基础就没打好,导致很多地方根本无法由前端程序猿控制,最后需要后端进行大量的重复劳动。在实习期间通勤的时候我一直在看Pro CSS for High Traffic Websites,结合里面的经验加上自己的思考就有了这篇... 阅读全文
posted @ 2014-09-24 01:48 Joyee 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 最近在看JavaScript框架设计,在讲解类型判定的时候提到了一些“匪夷所思的情况”,不过没有明说都是什么时候会出现这些情况。自己玩儿了一下,写写随笔吧。不过可能除了我找到的,还有会其他时候会出现这些诡异的现象2333问题:在JavaScript中,什么时候会出现a !== aa == b && ... 阅读全文
posted @ 2014-09-18 23:57 Joyee 阅读(347) 评论(0) 推荐(0) 编辑
摘要: jQuery UI下被拖动的元素上飘症状出现在几乎所有浏览器里。使用 1.10.x 的draggable,在滚动栏下移(即非处于页面顶部)的时候拖动draggable的元素,它会向上跳一段距离。解决办法是将jQuery UI 1.10.x的_convertPositionTo() 和 _genera... 阅读全文
posted @ 2014-09-10 02:10 Joyee 阅读(860) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页