Skip to content

Instantly share code, notes, and snippets.

@chendo
Created June 8, 2010 22:24
Show Gist options
  • Select an option

  • Save chendo/430735 to your computer and use it in GitHub Desktop.

Select an option

Save chendo/430735 to your computer and use it in GitHub Desktop.
# Daft Golf
# by chendo
# 484 bytes
s=%w(after better do ever faster harder hour is it make makes more never our over stronger than us work)
m="chavnohzy3a7uvnb4iw21ogt3xwazyiw6gqsoaihdjw36q8encnd1oxfpy2eomjfxfr9"
n="5vjlr1vcd8f7rdjb3c3zfk0kh6cjxc2l8dzvzk2hhfrwkg2n2ln04mpli1tq5gnfu7nvxc6dbk8yq9uxnfboimh5902mqtggizhhaakr2nk2xsh4qar5b8aypdocmeakqelscg11evw57i3ttep2ott0pqteclmae5sckhc"
def d(e,a)
t=e.to_i(36).to_s(2)
t[0]=''
t.scan(/.{5}/).map{|b|a[b.to_i(2)]}
end
w=d(m,s).join(' ').split(' ')
puts d(n,w).join("\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment