Skip to content

Instantly share code, notes, and snippets.

ruby-1.9.3-p484 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p484 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@ehutzelman
ehutzelman / gist:1091431
Created July 19, 2011 05:58
GreedRoll implementation: Ruby Koans
class GreedScore
def initialize(dice)
@values = dice.sort
end
def calculate
@score = 0
score_triples
score_singles
@score
@ehutzelman
ehutzelman / rails3autotest
Created May 15, 2011 22:14
rails 3 autotest
Gemfile:
group :development, :test do
gem 'autotest-standalone', :require => 'autotest'
gem 'autotest-rails-pure'
gem 'turn'
end
.autotest:
# Eric Hutzelman
# Ruby Challenge 10 (Business Hours)
# http://rubylearning.com/blog/2010/05/25/rpcfn-business-hours-10/
#
# Stores all exception days in a hash (@modified_days) and uses array
# method to retrieve the time range for any given date.
# Method #calculate_deadline is recursive and applies the available
# seconds for each date to the time required, stepping forward one day
# at a time until the required seconds have been fulfilled.