syd 確實很荒涼的。。。
新陳代謝和繁殖後代都是動物做的,我們是人,有思考能力的。
不要糾結於活著的意義,因為人生本沒有意義,你思考得出得只會是人生的目標,所以趁早做自己喜歡的事情就好。
用這個可以自動捕捉和紀錄 http request & request
https://www.relishapp.com/vcr/vcr/v/1-6-0/docs/test-frameworks/usage-with-rspec
@Rei,有參考過http://ghost.org/麼?他們好像還幾成功
FileUtils.mkdir_p '/usr/local/lib/ruby'
#16 楼 @blacktulip nice
#8 楼 @blacktulip multiple selection is the most useful feature. not sure how this is done in vim.
helper?
同问 freelancing
don't abuse the bang methods
@Rei Hi Rei,我今天看见有一个叫“简书”的上线了,不知道你有留意到嘛?
@tylerlong 想知道公司工作文化如何?working hard or working smart?还有平时小组怎么交流?有用任何 agile framework 么,例如 scrum?
有公司网站看看么?
slim 处理空格不是很理想。之前试用过一段时间又转回用 haml 了
@xiaoronglv ywjno 同学解释了 rvmsudo
你可以把一套 activerecord 做成一个 rails_engine 的 gem,然后就可以在 gemfile 里面引用了
def create
@user = User.new(params[:user])
flash[:notice] = "User was successfully created." if @user.save
respond_with(@user) do |format|
format.html { redirect_to params[:back] }
end
end
而实例变量是无法调用 private 方法的
other=self 只是说默认传入自身作为参数,但是 other 在这里是一个变量,不是 self
try daemon?
# ~/.inputrc
## Key binding
# @see `bind -p`
# @format "key": command
$if mode=emacs # find the keyboard preference in mac terminal
"\e[3~": delete-char # del
"\e[1~": beginning-of-line # home
"\e[4~": end-of-line # end
"\x1B\x1B\x5B\x44": backward-word # opt + left
"\x1B\x1B\x5B\x43": forward-word # opt + right
"\e[B": history-search-forward # down
"\e[A": history-search-backward # up
# no magic-space. not working in postgres console
#Space: magic-space
$endif
Ruby language precedence http://www.ruby-doc.org/docs/ProgrammingRuby/language.html#table_18.4
hmmm, looks like you have unique check for the nickname. take a look whether you have two users with same nickname, and remove one of them.
... github clone?
rvmsudo
Reference would help: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
schema.rb 是用于显示当前数据库结构的,一般会被用于测试环境中,用来创建测试数据库的。最好不要删。
"abcdefgabcdefgaaaaa".gsub(/abcd/, '')