Skip to content

Instantly share code, notes, and snippets.

@fuse
fuse / Gemfile
Created October 29, 2013 16:25 — forked from nicoolas25/Gemfile
gem 'devise'
gem 'omniauth'
gem 'omniauth-facebook'
gem 'omniauth-google-oauth2'
gem 'omniauth-windowslive'
require 'benchmark'
n = 5000000
class A
def initialize(attribute)
@attribute = attribute
end
@fuse
fuse / gist:1759079
Created February 7, 2012 10:51 — forked from tight/gist:1758913
for vs each
i = "foo"
for i in 1..5 do
puts i
j = "bar"
end
i # => 5
j # => "bar"
i = "foo"
(1..5).each do |i|