ruby
文章平均质量分 54
iteye_2629
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ruby、rails学习资源
一、ruby白魔法书 http://www.infoq.com/cn/articles/ruby-white-magic-book 二、infoq社区的ruby http://www.infoq.com/cn/ruby/ 三、TDD学习ruby http://rubykoans.com/ 四、猴子补丁 http://monkeyandcrow.com/ 五、...原创 2014-07-02 13:45:24 · 236 阅读 · 0 评论 -
ruby语言注意事项
每一门语言都有其独特之处,今天我就来聊聊ruby的独特之处 1.ruby中除了nil为false,其他都为true 2.ruby中的string是可变的,string类中有一系列修改字符串的方法。例如[]= << ruby中的数值对象是不可变的 3.ruby中的block 3.times { print "ruby } #do end 1.upto(10) ...原创 2014-07-04 13:02:44 · 210 阅读 · 0 评论 -
rails无限级分类实现
一.左右值算法 https://github.com/collectiveidea/awesome_nested_set 二.自实现 https://ruby-china.org/topics/20322原创 2014-07-04 23:21:41 · 234 阅读 · 0 评论 -
ruby元编程资源
1.ruby中的单件方法 http://www.devalot.com/articles/2008/09/ruby-singleton 2.ruby书架 http://pragprog.com/ 3.ruby self http://yehudakatz.com/2009/11/15/metaprogramming-in-ruby-its-all-about-the-sel...原创 2014-07-24 13:49:52 · 116 阅读 · 0 评论 -
block, lambda, proc的区别
The second difference is that lambdas have diminutive returns. What this means is that while a Proc return will stop a method and return the value provided, lambdas will return their value to the met...原创 2014-07-24 20:02:01 · 172 阅读 · 0 评论 -
99宿舍四六级成绩查询模拟ruby版本和curl版本
一.ruby版本,需要使用curb gem # encoding: UTF-8 require 'curb' #99宿舍网页是GBK的 CET_NUM = "xxxxxxxxxxxx" CET_NAME = "xxxx".encode('gb2312', 'utf-8') user = { :name => CET_NAME, :id => CET_NUM ...原创 2014-08-20 17:12:08 · 211 阅读 · 0 评论 -
rmagick使用教程
一.基本用法 http://www.iteye.com/topic/125487 二.汇总 http://www.iteye.com/topic/706242 三.安装 https://github.com/rmagick/rmagick/wiki/Installing-on-Ubuntu原创 2014-08-25 09:41:03 · 268 阅读 · 0 评论 -
ruby工具箱
https://rubygems.orghttps://www.ruby-toolbox.com/ https://www.ruby-toolbox.com/categories/by_name https://www.ruby-forum.com/ 古老!!! http://guides.rubyonrails.org/ http://rubyonrails.org...原创 2014-09-22 12:23:39 · 610 阅读 · 0 评论 -
mac mini配置ruby开发环境
一.安装xcode AppStore 二.安装homebrew # http://brew.sh ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 三.安装rvm curl -L https://get.rvm.io | bash -s sta...原创 2014-09-30 17:42:18 · 201 阅读 · 0 评论 -
rubymine性能调优
一.禁用不要的插件 二.jvm参数调整 cd rubymine_dir/bin vim rubymine.vmoptions -Xms128m -Xmx2048m -XX:MaxPermSize=500m -XX:ReservedCodeCacheSize=128m -XX:+UseCodeCacheFlushing -XX:+UseCompressedOops...原创 2014-10-02 13:29:06 · 250 阅读 · 0 评论 -
devise cancancan rolify 权限认证
http://d.hatena.ne.jp/htz/20140718/1405690417 http://www.tonyamoyal.com/2010/07/28/rails-authentication-with-devise-and-cancan-customizing-devise-controllers/ http://arubystory.blogspot.com/...原创 2014-11-02 21:21:00 · 277 阅读 · 0 评论 -
rails 4 自定义脚手架配置
一.建立rails 4 项目 rails -v # => 4.1.7 rails new customgenerator --skip-bundle # edit the gem source in Gemfile cd customgenerator bundle install rails s # visit http://127.0.0.1:3000/ 二.添...原创 2014-11-04 10:47:28 · 199 阅读 · 0 评论
分享