Created
October 9, 2008 23:23
-
-
Save bkerley/15937 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
file = File.read(ARGV[0]) | |
file.gsub!(' ','0') | |
mangled = file.split.join(' ') | |
coded = "draw {#{mangled}}" | |
puts coded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment