Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pinouchonizer
# Usage:
# echo "GET REKT" | ruby pinouchonizer.rb
letters = DATA.read.split("\n\n")
puts(
STDIN.read.chars.map do |c|
letters[c.ord - 65]
end.join("\n\n").gsub('x', ':pinouchon:').gsub(' ', ' ')
)
__END__
xxx
x x
x x
xxxxx
x x
x x
xxxx
x x
x x
xxxx
x x
x x
xxxx
xxxxx
x
x
x
x
xxxxx
xxxx
x x
x x
x x
x x
xxxx
xxxxx
x
x
xxxx
x
x
xxxxx
xxxxx
x
x
xxx
x
x
xxxxx
x
x
x xxxx
x x
xxxx
x x
x x
x x
xxxxxxx
x x
x x
x x
x
x
x
x
x
x
xxxxxxx
x
x
x
x x
x x
xx
x xx
x xx
xx
xx
x xx
x xx
x
x
x
x
x
xxxxxx
x x
x x x x
x xx x
x x
x x
x x
x x
x x x
x x x
x x x
x x
x x
xxxx
x x
x x
x x
x x
xxxx
xxxxx
x x
x x
xx x
x xxxx
x
x
x
x
xxxxxx
x x
x x
x x
x x x
x xx
xxxxxxxxx
xxxxx
x x
x x
x xxxx
xx
x xx
x xx
xxxxxx
x
x
xxxx
x
x
xxxxx
xxxxxx
x
x
x
x
x
x x
x x
x x
x x
xxxx
x x
x x
x x
x
x x x
x x x x
x x x x
x x
x x
x x
xxx
x x
x x
x x
x x
xx
x
x
x
xxxxxxx
x
x
x
x
xxxxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment