Skip to content

Instantly share code, notes, and snippets.

View jjwanat's full-sized avatar

Joe Wanat jjwanat

  • Chicago, IL, USA, North America, Earth
View GitHub Profile
@jjwanat
jjwanat / Original
Created December 3, 2012 03:10
OSX Lion Step Re-write
step "Install Homebrew" do
console "which git"
result "/usr/bin/git"
message "If you get the result above skip to: <a href='install_rvm_and_ruby'>Install RVM</a>"
link "install_homebrew"
end
step "Install Git" do
message "Next we'll install Git, the most popular version control system in the Ruby world:"
@jjwanat
jjwanat / event_manager.rb
Created December 2, 2012 02:46
Problem with "clean_number" refactor
def print_numbers
@file.each do |line|
number = clean_number([:homephone])
puts number
end
end
def clean_number(original)
number = number.delete(".").delete("-").delete(" ").delete("(").delete(")")
#There must be a shorter way to deal with this..?