这是一篇关于jQuery的文章,写到这里给初学者一些建议。原文地址:http://flippinawesome.org/2013/11/25/writing-better-jquery-code/现在已经有很多文章讨论jQuery和JavaScript的性能问题,然而,在这篇文章中我计划总结一些提升...
分类:
Web程序 时间:
2014-08-15 23:43:49
阅读次数:
320
很好的树形DP入门题,看着和选课那道题如出一辙。Problem DescriptionACboy很喜欢玩一种战略游戏,在一个地图上,有N座城堡,每座城堡都有一定的宝物,在每次游戏中ACboy允许攻克M个城堡并获得里面的宝物。但由于地理位置原因,有些城堡不能直接攻克,要攻克这些城堡必须先攻克其...
分类:
其他好文 时间:
2014-08-15 12:06:38
阅读次数:
227
Short answer: no practical danger yet, but read on for a better way...What's this ptrace thing anyway?this is due to a bug in the Ubuntu kernel that p...
分类:
其他好文 时间:
2014-08-13 12:36:16
阅读次数:
697
More is better Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 327680/102400 K (Java/Others) Total Submission(s): 14656 Accepted Submission(s): 5...
分类:
其他好文 时间:
2014-08-12 10:17:33
阅读次数:
205
题目:
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I I G
Y I R
And then read line by line: "PAHNAPLSIIG...
分类:
其他好文 时间:
2014-08-12 00:47:43
阅读次数:
196
并查集基础#include#include#include#include#include#include#include#define mem(a,b) memset(a,b,sizeof(a))#define ll __int64#define MAXN 1000#define INF 0x7f...
分类:
其他好文 时间:
2014-08-10 01:40:19
阅读次数:
227
One day Dima and Alex had an argument about the price and quality of laptops. Dima thinks that the more expensive a laptop is, the better it is. Alex disagrees. Alex thinks that there are two laptops,...
分类:
其他好文 时间:
2014-08-09 11:47:17
阅读次数:
276
结合工作中的实例,如何设计一个良好的Unit Test,不仅关系到程序的正确性,更关系到有效的缩短整个团队的开发周期(coding, build, refactoring),深刻的关系到敏捷在实际中的应用。单元测试,是编程契约的一种重要体现。Unit Test应该相信别人会遵守契约。每个Projec...
分类:
其他好文 时间:
2014-08-08 18:04:56
阅读次数:
324
zen 即禅之意可以在python的命名行交互模式下以下的语句就能看到:import thisThe Zen of Python, by Tim PetersBeautiful is better than ugly.Explicit is better than implicit.Simple i...
分类:
编程语言 时间:
2014-08-08 15:25:46
阅读次数:
262
How to mount remote Windows sharesContentsRequired packagesBasic methodBetter MethodEven-better methodYet Another Even-better methodOK, we live in the...