上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 40 下一页
  2015年4月22日
摘要: 书中源码是这样的File.foreach('1.txt') do |x| if(($. == 1) || x =~ /eig/) .. (($. == 3) || x =~ /nin/) then print x endend其中 1.txt内容如下firstsecondthirdfour... 阅读全文
posted @ 2015-04-22 12:25 c3tc3tc3t 阅读(297) 评论(0) 推荐(0)
摘要: putstrueandfalse#相当于(putstrue)andfalseUse &&/|| for boolean expressions, and/or for control flow. (Rule of thumb: If you have to use outer parentheses... 阅读全文
posted @ 2015-04-22 09:24 c3tc3tc3t 阅读(257) 评论(0) 推荐(0)
  2015年3月31日
摘要: MPlayer2 PPA源安装,打开终端,输入命令:sudo add-apt-repository ppa:motumedia/mplayer-dailysudo apt-get updatesudo apt-get install mplayer2如果你不想使用这个新版本,而是想返回以前旧版本,可... 阅读全文
posted @ 2015-03-31 21:31 c3tc3tc3t 阅读(341) 评论(0) 推荐(0)
摘要: sudo add-apt-repository ppa:noobslab/iconssudo apt-get updatesudo apt-get install square-beam-iconsUbuntu restricted extras 阅读全文
posted @ 2015-03-31 15:28 c3tc3tc3t 阅读(241) 评论(0) 推荐(0)
  2015年3月19日
摘要: 国内也有ubuntu镜像源。但是里面的git都是1.9版本。最新的已经是2.3了1 首先使用将ppa源加入Ubuntu,交大家sudo add-apt-repository ppa:pdoes/ppa2 然后根据提示,输入回车。加入密钥3 输入以下命令sudo apt-get updatesudo ... 阅读全文
posted @ 2015-03-19 14:00 c3tc3tc3t 阅读(1299) 评论(0) 推荐(0)
  2015年3月14日
摘要: var people = { name: ["abc", "jack", "pepter", "jim"], getname: function() { return function () { var i = Math.floor((... 阅读全文
posted @ 2015-03-14 13:55 c3tc3tc3t 阅读(1047) 评论(0) 推荐(0)
  2015年3月11日
摘要: 记得以前看过一本数据挖掘的书籍,书籍开篇有一个小案例。就是一家超市发现每天尿布的销售量增加的时段同时啤酒也卖的特别好。后来研究发现,当地生活习惯是,老爸带孩子居多,所以买尿布的同时买了啤酒,所以这家超市就把啤酒和尿布还有其他年轻父亲需要的照顾孩子用的产品放在一起,方便这些奶爸购买。这就很方便,你想啊... 阅读全文
posted @ 2015-03-11 21:33 c3tc3tc3t 阅读(171) 评论(0) 推荐(0)
  2015年3月5日
摘要: http://velocity.silverlakesoftware.com/ 这个mac下的dash的window版本http://devdocs.io/ 这个一个在线版http://zealdocs.org/ 这个也是 阅读全文
posted @ 2015-03-05 16:37 c3tc3tc3t 阅读(152) 评论(0) 推荐(0)
摘要: //javascript基础语法备忘录-变量和数据类型// 定义变量使用var关键字 后面跟变量名,不要使用eval 和arguments为变量名var message = "hi";message =100; //有效但是不推荐//如果声明变量时未初始化,message保存一个特殊值undefi... 阅读全文
posted @ 2015-03-05 15:10 c3tc3tc3t 阅读(172) 评论(0) 推荐(0)
  2015年2月26日
摘要: article a :hover { color: red;}上面表示 article 内所有a 标签的所有子标签在hover时是红色article a:hover { color: red;}上面表示,article内的所有a标签的在hover时是红色关键在于 a后面空格 阅读全文
posted @ 2015-02-26 13:06 c3tc3tc3t 阅读(1197) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 40 下一页