This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def loop | |
yield | |
raise | |
rescue | |
retry | |
end | |
loop do | |
puts "yippie" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.profile: executed by the command interpreter for login shells. | |
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login | |
# exists. | |
# see /usr/share/doc/bash/examples/startup-files for examples. | |
# the files are located in the bash-doc package. | |
# the default umask is set in /etc/profile; for setting the umask | |
# for ssh logins, install and configure the libpam-umask package. | |
#umask 022 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# can be empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thomas-Kadaukes-Mac-Pro:activesupport tkadauke$ rake -f Rakefile.rubymotion | |
================================================================================ | |
A new version of RubyMotion is available. Run `sudo motion update' to upgrade. | |
================================================================================ | |
Build ./build/iPhoneSimulator-6.0-Development | |
Compile /Users/tkadauke/code/rails/activesupport/lib/active_support/inflector/inflections.rb | |
Compile /Users/tkadauke/code/rails/activesupport/lib/active_support/inflector/methods.rb | |
Compile /Users/tkadauke/code/rails/activesupport/lib/active_support/inflector/transliterate.rb | |
Link ./build/iPhoneSimulator-6.0-Development/MotionSupport.app/MotionSupport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LABELS = {} | |
def label(name) | |
LABELS[name] = callcc { |cc| cc } | |
end | |
def goto(name) | |
LABELS[name].call LABELS[name] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Array | |
def index_of(&block) | |
each_with_index do |item, index| | |
return index if yield(item) | |
end | |
end | |
end | |
def print_these_strings(&block) | |
block.inspect =~ /#<Proc:.*?@(.*?):(.*?)>/ |