1. [代码]tmpl.js // Simple JavaScript Templating// John Resig - http://ejohn.org/ - MIT Licensed(function() {var cache = {};this.tmpl = function tmpl(s....
分类:
编程语言 时间:
2014-07-09 19:19:15
阅读次数:
290
链接: http://poj.org/problem?id=1258Agri-NetTime Limit:1000MSMemory Limit:10000KTotal Submissions:38326Accepted:15424DescriptionFarmer John has been ele...
分类:
其他好文 时间:
2014-07-09 00:11:17
阅读次数:
251
jQuery 1.5 发布的时候 john resig 大神说所用的代码优化程序从Google Closure切换到UglifyJS,新工具的压缩效果非常令人满意。 UglifyJS 是一个服务端node.js的压缩程序。我测试了一下压缩率确实比较高。 所以值得写篇文章推荐下。 你也可以尝试一下.....
分类:
编程语言 时间:
2014-07-07 12:29:24
阅读次数:
303
1. [代码]tmpl.js // Simple JavaScript Templating// John Resig - http://ejohn.org/ - MIT Licensed(function() {var cache = {};this.tmpl = function tmpl(s....
分类:
编程语言 时间:
2014-07-06 23:21:22
阅读次数:
278
DescriptionFarmer John is assigning some of his N (1 2 #include 3 #include 4 using namespace std; 5 int vis[1100009]; 6 int a,b; 7 struct node 8 { 9 ....
分类:
其他好文 时间:
2014-07-06 14:50:25
阅读次数:
155
Description
Little John is herding his father's cattles. As a lazy boy, he cannot tolerate chasing the cattles all the time to avoid unnecessary omission. Luckily, he notice that there were N trees...
分类:
其他好文 时间:
2014-07-06 10:39:09
阅读次数:
188
好久没写博文了,添加一个练习题,选自《head_first_python》~~python列表:以中括号开始和结束"[]";列表项以逗号","分隔开,使用赋值操作符"="赋予一个标识符。如:movies=["theholy",1975,"terryjones",91,["graham",["michael","john","gilliam","idle","haha"]]]注释:1..
分类:
编程语言 时间:
2014-07-04 00:56:23
阅读次数:
596
??
垃圾回收用来实现内存的自动管理(automatic management),区别于人工管理(manual management)。人工管理内存容易出现的问题:
1)悬垂指针,dangling pointer
2)重复回收,Double free
3)内存泄露,memory leak
历史
垃圾回收的概念及技术由John McCarthy于1959年发明,应用于List...
分类:
其他好文 时间:
2014-07-03 16:34:03
阅读次数:
194
这里使用NSXMLParser来解析
在Xcode中加入一个xml文件:
001
John
Reminder
Don't forget the meeting!
002
Jack
cc
how are you!
003
Tom
bb
I am fine!
先读出来
NSS...
分类:
移动开发 时间:
2014-07-03 15:31:49
阅读次数:
286
Building roads
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 6229
Accepted: 2093
Description
Farmer John's farm has N barns, and there are some cows that...
分类:
其他好文 时间:
2014-06-30 10:55:18
阅读次数:
146