Skip to content

Instantly share code, notes, and snippets.

@pinouchon
Created February 13, 2017 15:20
Show Gist options
  • Save pinouchon/7e3f4d5f037ea0fb331c5b69c05ace5f to your computer and use it in GitHub Desktop.
Save pinouchon/7e3f4d5f037ea0fb331c5b69c05ace5f to your computer and use it in GitHub Desktop.
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