Skip to content

Instantly share code, notes, and snippets.

@eric
Created October 14, 2009 06:17
Show Gist options
  • Save eric/209834 to your computer and use it in GitHub Desktop.
Save eric/209834 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# Riddle at http://bt.tumblr.com/post/212634688
# Moved to http://bt.tumblr.com/post/212669579
translation = Hash[*('a'..'z').zip(('a'..'z').to_a.reverse).flatten]
translation.each { |k,v| translation[k.upcase] = v.upcase }
puts DATA.read.gsub(/./) { |c| translation[c] || c }
# http://www.sendspace.com/file/mwilj6
# We are a dozen and red and the key to the path
__END__
sggk://ddd.hvmwhkzxv.xln/urov/ndroq6
Dv ziv z wlavm zmw ivw zmw gsv pvb gl gsv kzgs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment