Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Created February 12, 2013 21:21
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ttscoff/4773500 to your computer and use it in GitHub Desktop.
Save ttscoff/4773500 to your computer and use it in GitHub Desktop.
Possibly the dumbest script ever. Why make this gist public? Why not, I ask you, why not?
#!/usr/bin/ruby
input = STDIN.read
subs = {
" " => " ",
"a" => "ɐ",
"b" => "q",
"c" => "ɔ",
"d" => "p",
"e" => "ǝ",
"f" => "ɟ",
"g" => "ƃ",
"h" => "ɥ",
"i" => "ı",
"j" => "ɾ",
"k" => "ʞ",
"l" => "l",
"m" => "ɯ",
"n" => "u",
"o" => "o",
"p" => "d",
"q" => "b",
"r" => "ɹ",
"s" => "s",
"t" => "ʇ",
"u" => "n",
"v" => "ʌ",
"w" => "ʍ",
"x" => "x",
"y" => "ʎ",
"z" => "z",
"A" => "∀",
"B" => "q",
"C" => "Ɔ",
"D" => "p",
"E" => "Ǝ",
"F" => "Ⅎ",
"G" => "פ",
"H" => "H",
"I" => "I",
"J" => "ſ",
"K" => "ʞ",
"L" => "˥",
"M" => "W",
"N" => "N",
"O" => "O",
"P" => "Ԁ",
"Q" => "Q",
"R" => "ɹ",
"S" => "S",
"T" => "┴",
"U" => "∩",
"V" => "Λ",
"W" => "M",
"X" => "X",
"Y" => "⅄",
"Z" => "Z",
"," => "'",
"!" => "¡",
"?" => "¿",
"(" => ")",
")" => "(",
"[" => "]",
"]" => "[",
"." => "˙",
'"' => ",,",
"'" => ","
}
puts input.split(//).reverse.map {|l|
subs[l].nil? ? l : subs[l]
}.join("")
@KINGSABRI
Copy link

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