Skip to content

Instantly share code, notes, and snippets.

View jsanti's full-sized avatar

Jorge Santiago jsanti

  • Medellín, Colombia
View GitHub Profile
# What's the output of this program?
# Compare Ruby 1.8 to 1.9.
def fl; lambda { return 1 }.call; 2; end
def fp; proc { return 1 }.call; 2; end
def fPn; Proc.new { return 1 }.call; 2; end
puts fl
puts fp
puts fPn
@samanthamjohn
samanthamjohn / Gemfile
Last active December 15, 2015 07:59
How to set up the asset pipeline for rails 4.
group :assets do
gem 'sass-rails', '~> 4.0.0.beta1'
gem 'coffee-rails', '~> 4.0.0.beta1'
gem 'sprockets-rails', :require => 'sprockets/railtie'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'uglifier', '>= 1.0.3'
end