Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Created April 21, 2010 15:31
Show Gist options
  • Select an option

  • Save lukaszkorecki/373966 to your computer and use it in GitHub Desktop.

Select an option

Save lukaszkorecki/373966 to your computer and use it in GitHub Desktop.
#!/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
@lukaszkorecki
Copy link
Copy Markdown
Author

Inspired by a certain 4chan thread.
ninja alphabet

@veryhappythings
Copy link
Copy Markdown

Rinkami!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment