Permalink
Browse files

packed string

  • Loading branch information...
1 parent ce21957 commit dfa27c6599dc28bd950135f4ce79c281b62ff3ce @pkkr pkkr committed May 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 philister.rb
View
@@ -1 +1 @@
-%w{4kzmf 3y92d 4njo7}.each {|n| puts n.to_i(36).to_s(2).tr('10', '# ')}
+'WWuSQSwqu'.unpack('b23'*3).each{|n|puts n.tr'10','# '}

1 comment on commit dfa27c6

Not bad, but you can shave off another 5 bytes :)

Please sign in to comment.