Created
April 21, 2010 15:31
-
-
Save lukaszkorecki/373966 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 | |
| ninja_alphabet = { | |
| :a => "ka", :b => "zu", :c => "mi", :d => "te", :e => "ku", | |
| :f => "lu", :g => "ji", :h => "ri", :i => "ki", :j => "zu", | |
| :k => "me", :l => "ta", :m => "rin", :n => "to", :o => "mo", | |
| :p => "no", :q => "ke", :r => "shi", :s => "ari", :t => "chi", | |
| :u => "do", :v => "ru", :x => "na", :y => "fu", :z => "zi" | |
| } | |
| name = ARGV[0] | |
| unless name | |
| puts "errorr - give a name, k?" | |
| exit 1 | |
| else | |
| puts name.split("").map { |letter| ninja_alphabet[letter.downcase.to_sym] }.join "" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inspired by a certain 4chan thread.
