会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
怒杀神殿
这里是我家
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
36
下一页
2015年12月23日
Linux超快速安装Ruby on Rails
摘要: Linux超快速安装Ruby on Rails 时间 2014-11-25 11:45:11 Flincllck Talk 原文 http://www.flincllck.com/quick-install-rails/ 主题 Ruby on Rails Sed 在前面的一篇文章我介绍了一个安装RO
阅读全文
posted @ 2015-12-23 16:20 怒杀神
阅读(1335)
评论(0)
推荐(0)
2015年12月2日
安装fcitx [Crunch bang] [debian]
摘要: 第一步: sudoapt-getinstallfcitxfcitx-sunpinyinfcitx-ui-classicfcitx-table fcitx-config-commonfcitx-config-gtkfcitx-data fcitx-frontend-allfcitx-libsim-co...
阅读全文
posted @ 2015-12-02 14:36 怒杀神
阅读(245)
评论(0)
推荐(0)
2015年12月1日
补全Gemfile缺少到javascript gem
摘要: 如果缺少某个gem,查看并修改Gemfile文件第一步要先修改源source 'https://ruby.taobao.org'下面补全这两个gemgem'execjs'gem'therubyracer' 然后激活补全动作 bundle install
阅读全文
posted @ 2015-12-01 14:13 怒杀神
阅读(221)
评论(0)
推荐(0)
2015年11月24日
数值类
摘要: 构成 Integer Fixnum Bignum Float Rational(分子,分母) Complex(实数,虚数) 字面量 0(零)开头----八进制 0o开头----八进制 0x开头----十六进制 0d开头----十进制 0b开头----二进制 123....
阅读全文
posted @ 2015-11-24 15:01 怒杀神
阅读(219)
评论(0)
推荐(0)
2015年11月18日
Hash
摘要: 创建(特殊的)Hash[]Hash[‘a’,1,’b’,2]->yesHash[‘a’,1,’b’,’b’]->noHash[[[‘a’,1],[‘b’,2]]]->yes删除delete (有个带if的条件删除)清除用clear遍历each开头的each {| key, value| block ...
阅读全文
posted @ 2015-11-18 16:09 怒杀神
阅读(148)
评论(0)
推荐(0)
String
摘要: []中的索引 a = "hello there" a[1] #=> "e" a[2, 3] #=> "llo" a[2..3] #=> "ll" a[-3, 2] #=> "er" a[7..-2] #=> "her" a[-4..-2] #=> "her" a[-2..-4] #=...
阅读全文
posted @ 2015-11-18 16:06 怒杀神
阅读(188)
评论(0)
推荐(0)
2015年11月11日
Array常用方法
摘要: 定义二维数组: list = [['保密',''],['男',1],['女',0]] 引用 怎么创建与返回值是二维数组形式 不知道你想要怎样的答案 如果是一方法想要返回二维数组,方法的最后一行是那个数组就好了 def list [['保密',''],['男...
阅读全文
posted @ 2015-11-11 15:46 怒杀神
阅读(843)
评论(0)
推荐(0)
Array类
摘要: class Array Arrays are ordered, integer-indexed collections of any object. Array indexing starts at 0, as in C or Java. A negative index is assumed...
阅读全文
posted @ 2015-11-11 12:57 怒杀神
阅读(291)
评论(0)
推荐(0)
2015年11月8日
ruby调试/练习时的小技巧
摘要: 必备工具 irb 查祖先 1.9.3-p545 :023 > String.ancestors => [String, Comparable, Object, Kernel, BasicObject] String的前面有四个上级 过滤方法 Ruby的方法非常多,以至于不得...
阅读全文
posted @ 2015-11-08 22:08 怒杀神
阅读(999)
评论(0)
推荐(0)
集合类对象的遍历处理办法
摘要: Titlemap reduce select reject group_by each collect inject1. map:针对每个element进行变换并返回整个修改后的map例如有这样一个字符串: a = %w(a b cD) a.map do |item| item.upcase e...
阅读全文
posted @ 2015-11-08 21:51 怒杀神
阅读(405)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
36
下一页
公告