Skip to content

Instantly share code, notes, and snippets.

@bkerley
Last active April 8, 2018 02:18
Show Gist options
  • Save bkerley/042e5790f74c322abf6d to your computer and use it in GitHub Desktop.
Save bkerley/042e5790f74c322abf6d to your computer and use it in GitHub Desktop.
def puts(crap); super("stop using puts"); end #dave
def puts(s); super; super("WAT"); (s=s.to_s).reverse!; end # hiro
puts greeting = "Hello Ruby DCamp! It is %s" % Time.now # hiro
puts (words = File.read('/usr/share/dict/words').split).length #bryce
puts (butt_words = words.select {|w| w =~ /butt/}).length #bryce
words = words.select {|w| w =~ /ity$/ } # Jason
words = words.map{|w| w.tr("aeiou", ('a'..'z').to_a.sample(5).join)} # max
puts sentence = (5.times.map{words.sample.reverse}.join " LOL ") # Joshsz
puts upsentence = sentence.upcase # max
new_things = `ls /tmp`; puts new_things # Luqi
puts wat_sentences = upsentence.split.map {|s| s += "WAT!"}#Luqi
puts (thing = `echo -e "#{words.select{|w| w =~ /leave/}} #{words.select{|w| w =~ /my/}} #{words.select{|w| w =~ /output/}} #{words.select{|w| w =~ /alone/}}!"`)# josh
thing = "ruby fart fun kids hello everyone "
exec "say #{thing.split.sample(5)}" # Jason
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment