Skip to content

Instantly share code, notes, and snippets.

@kachick
kachick / compare_array.rb
Created September 25, 2012 14:55
Array 要素すべてが#==で一致するか調べる
values = [1, 2, 3]
others = [1.0, 2.0, 3.0]
(values.length == others.length) && values.each_with_index.all?{|v, idx|v == others.fetch(idx)}
@kiesia
kiesia / attributes-default.rb
Created July 5, 2012 06:12 — forked from philwo/attributes-default.rb
Chef cookbook for nginx + passenger (compiled from source)
default['nginx']['version'] = "1.2.0"
default['nginx']['passenger']['version'] = "3.0.12"
@ohnishiakira
ohnishiakira / .gemrc
Created August 1, 2011 03:13
.gemrcの書き方
# 普段はこう書いている
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
search: --remote
specification: --remote