上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: ng-change 使用时需要指定 ng-model , 否则会报错找不到这个指令。 angular version 1.2.0 阅读全文
posted @ 2014-08-26 09:16 LaoQuans 阅读(488) 评论(0) 推荐(1) 编辑
摘要: def do_n_times(n){ i = 1 while( i#{x}" }# --->1# --->2# --->3上面是使用关键字 yeild 来调用代码块,而下面的例子,在方法定义的时候定义了一个Proc 参数( 索引到传入的块),这个 Proc 参数需放在参数列表的最后,然后在方法里... 阅读全文
posted @ 2014-08-24 14:39 LaoQuans 阅读(319) 评论(0) 推荐(0) 编辑
摘要: def hello # A nice simple method puts "Hello World" # Suppose we want to augment it...end alias original_hello hello # Give the method a backup named... 阅读全文
posted @ 2014-08-24 10:07 LaoQuans 阅读(342) 评论(0) 推荐(0) 编辑
摘要: git add [commit file list]将已经修改的代码添加索引git commit -m [commit message]将已经索引的代码修改提交至本地的库git push origin [branch_name]将分支 branch_name 的代码推送至服务器git pull or... 阅读全文
posted @ 2014-08-16 21:39 LaoQuans 阅读(143) 评论(0) 推荐(0) 编辑
摘要: /* * remove space, tab and enter(new line) of file * usage : ./rmspace newFile */#includeint main(){ int c,i=0; while((c=getchar())!=EOF) { if... 阅读全文
posted @ 2014-08-16 08:54 LaoQuans 阅读(279) 评论(0) 推荐(0) 编辑
摘要: devise - 你做了好多,我确不懂你。甚至理解你都那么困难。 阅读全文
posted @ 2014-08-12 00:03 LaoQuans 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 好奇,想用二维数组实现扫雷的埋雷和统计周围雷的数目,刚开始用一个二维数组(相对小的那个,后文称:小数组)保存数据,发现统计的时候边缘情况有点麻烦,就又定义了一个比原来列行都大2的二维数组(后文称:大数组)。把原来的保存的数据放到大数组中间,然后统计大数组,统计结果放回小数组。代码:#include#... 阅读全文
posted @ 2014-07-05 11:57 LaoQuans 阅读(832) 评论(0) 推荐(0) 编辑
摘要: MY linux is ubuntu . ubuntu mount usb automatly.I visit my usb through command . I visit /media/myusb touch a file , and i try to chmod this file, and... 阅读全文
posted @ 2014-06-12 10:49 LaoQuans 阅读(246) 评论(0) 推荐(0) 编辑
摘要: ```rubyclass Demo def initialize # endend``` 阅读全文
posted @ 2014-05-22 09:37 LaoQuans 阅读(113) 评论(0) 推荐(0) 编辑
摘要: http://www.gnu.org/software/grub/manual/grub.htmlhttp://members.iinet.net/~herman546/p20/GRUB2%20Configuration%20File%20Commands.html 阅读全文
posted @ 2014-05-14 16:22 LaoQuans 阅读(130) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页