Skip to content

Instantly share code, notes, and snippets.

@bkerley
Created October 9, 2008 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkerley/15937 to your computer and use it in GitHub Desktop.
Save bkerley/15937 to your computer and use it in GitHub Desktop.
#!/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