上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 41 下一页
摘要: https://github.com/peleteiro/progressbargem install progressbargem 'progressbar', '~> 0.21.0'% irb --simple-prompt -r progressbar>> pbar = ProgressBar... 阅读全文
posted @ 2014-06-18 20:02 冰凌花花~ 阅读(185) 评论(0) 推荐(0) 编辑
摘要: join(string, ...) Returns a new string formed by joining the strings using File::SEPARATOR.File.join("usr", "mail", "gumby") #=> "usr/mail/gumby"rea... 阅读全文
posted @ 2014-06-18 19:22 冰凌花花~ 阅读(118) 评论(0) 推荐(0) 编辑
摘要: http://mongoid.org/en/mongoid/docs/querying.html#querieshttp://docs.mongodb.org/manual/reference/operator/query-comparison/gt大于, gte大于等于,lt小于, lte小于等于... 阅读全文
posted @ 2014-06-18 14:46 冰凌花花~ 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 在controller里加入binding.pry, then turn to the server terminalrails runner script/aaa.rb 阅读全文
posted @ 2014-06-16 20:53 冰凌花花~ 阅读(105) 评论(0) 推荐(0) 编辑
摘要: $ vim /home/wangzheng/.ssh/configHost 10.103.xx.xx HostName 10.103.xx.xxUser root Port 22022 $ ssh 10.103.xx.xxThe authenticity of host '[10.103.xx... 阅读全文
posted @ 2014-06-16 11:55 冰凌花花~ 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 如果新提交的分支代码和master有冲突,先checkout到分支merge master,解决冲突,然后再checkout master,merge 分支.(1) git checkout edit_package_page git merge master --no-ff这时候会看到很多CO... 阅读全文
posted @ 2014-06-16 11:28 冰凌花花~ 阅读(1894) 评论(0) 推荐(0) 编辑
摘要: http://ruby-doc.org/core-2.1.2/Regexp.htmlRegexpARegexpholds a regular expression, used to match a pattern against strings. Regexps are created using ... 阅读全文
posted @ 2014-06-13 18:29 冰凌花花~ 阅读(704) 评论(0) 推荐(0) 编辑
摘要: Basic GitHub CheckoutThis will get you going with the latest version of rbenv and make it easy to fork and contribute any changes back upstream.Check ... 阅读全文
posted @ 2014-06-13 17:45 冰凌花花~ 阅读(260) 评论(0) 推荐(0) 编辑
摘要: top命令进程太多,实时的只查看所有的系统运行的ruby的进程:top -d 1 -p `pgrep -d, ruby` 阅读全文
posted @ 2014-06-13 16:16 冰凌花花~ 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Form 的样式,可以参考http://getbootstrap.com/css/#forms "form-control" %> "form-control"%> "form-cont... 阅读全文
posted @ 2014-06-13 16:13 冰凌花花~ 阅读(707) 评论(0) 推荐(0) 编辑
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 41 下一页