Skip to content

Instantly share code, notes, and snippets.

@andrewjl
andrewjl / gist:3113876
Created July 14, 2012 23:36
Ruby 1.9.1 install std commands
andrewjl$ rvm install 1.9.1 --with-readline-dir=$rvm_path/usr
Installing Ruby from source to: /Users/andrewjl/.rvm/rubies/ruby-1.9.1-p431, this may take a while depending on your cpu(s)...
ruby-1.9.1-p431 - #fetching
ruby-1.9.1-p431 - #downloading ruby-1.9.1-p431, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
26 7127k 26 1885k 0 0 398k 0 0:00:17 0:00:04 0:00:13 413k^Z
[1]+ Stopped "$rvm_scripts_path"/manage install "${rvm_ruby_strings}"
@andrewjl
andrewjl / gist:3113867
Created July 14, 2012 23:33
Ruby 1.9.2 install output
andrewjl$ rvm install 1.9.2 -C "--with-readline-dir=$HOME/.rvm/usr" --trace
1.9.2 -C --with-readline-dir=/Users/andrewjl/.rvm/usr --trace
rvm 1.14.3 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
+ [[ -n '' ]]
+ export 'PS4=+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ /scripts/cli : __rvm_parse_args() 795 > [[ -z install ]]
+ /scripts/cli : __rvm_parse_args() 797 > [[ 0 -eq 1 ]]
@andrewjl
andrewjl / lexicon.rb
Created September 2, 2011 22:50
Unit Testing Question Code
class Lexicon
Pair = Struct.new(:token, :word)
Direction = %w(north south east west down up left right back)
Verb = %w(go stop kill eat)
Stop = %w(the in of from at it)
Noun = %w(door bear princess cabinet)
def initialize()
end