Skip to content

Instantly share code, notes, and snippets.

View LeFnord's full-sized avatar
🚀

peter scholz LeFnord

🚀
  • Leipzig/Lausitz, Saxony
View GitHub Profile
#!/usr/bin/env sh
# since ruby 2.7.1 is out, also a bunch of deprecation warnings pos up,
# this makes sense, but in day-to-day it is annoying
#
# this snippet is then be loaded on my .zshrc and sets the stuff dependeing on ruby version
#!/usr/bin/env sh
set -e
@LeFnord
LeFnord / memo.rb
Created October 19, 2016 20:09
ruby memoization benchmarks
require "benchmark"
class A
def name
@name ||= begin
rand
end
end
end
@LeFnord
LeFnord / rails3_template.rb
Created November 12, 2010 18:24
An application template for Rails 3 including: authlogic, haml, rspec, compass-susy, jquery ... go running ;)
# An application template for Rails 3
gem "factory_girl_rails", :group => [:development, :test]
gem "factory_girl_generator", :group => [:development, :test]
gem "rspec", :group => [:development, :test]
gem "rspec-rails", :group => [:development, :test]
gem "haml"
gem "haml-rails"
gem "authlogic", :git => "git://github.com/odorcicd/authlogic.git", :branch => "rails3"