Skip to content

Instantly share code, notes, and snippets.

View kamarcum's full-sized avatar
:fishsticks:

Keith Marcum kamarcum

:fishsticks:
  • Portland, Oregon
View GitHub Profile
@kamarcum
kamarcum / doit.rb
Created September 13, 2012 17:36
STRINGS ARE FUN
puts "Hello" + " world"
puts "What is your name?"
name = gets.chomp
def do_a_funny_cheer(probably_keith)
puts "laugh at #{probably_keith}"
# Give me a K! ad nauseum
end
do_a_funny_cheer(name)
# fizz buzz would be really cool here since they know %
# these are comments you don't have to type them
@kamarcum
kamarcum / ErrorBehavior.java
Created July 10, 2012 18:41
Fiddling with error behavior in Java
public abstract class ErrorBehavior<T extends Exception> {
public abstract void handle(T e);
public class SilentErrorBehavior extends ErrorBehavior {
@Override
public void handle(T e) {
}
}
@kamarcum
kamarcum / Paste
Created October 5, 2011 16:05
JRuby bundler puzzlement
$ sudo jruby -S bundle install
Could not find rake-0.9.2 in any of the sources
$ sudo jruby -S gem list
*** LOCAL GEMS ***
bundler (1.0.21)
rake (0.9.2)
rubygems-update (1.6.0)
sources (0.0.1)