Skip to content

Instantly share code, notes, and snippets.

@fliptopbox
Last active June 29, 2016 23:44
Show Gist options
  • Save fliptopbox/ebcdabff58f76c5f9208b4afcf91f34f to your computer and use it in GitHub Desktop.
Save fliptopbox/ebcdabff58f76c5f9208b4afcf91f34f to your computer and use it in GitHub Desktop.
javascript - alien in my console
(function(e,t) {
console.log('%s\nKilroy was here.', t.replace(/\w/g, function(x) {return e[x];}));
}({a:' ',l:'▀',i:'▄',e:'█',n:'\n'}, "aaaliaaailaanaaieleeeleianaeleeeeeeelenaeaellllleaenaaaallallaaan"));
console.log output:
▀▄ ▄▀
▄█▀███▀█▄
█▀███████▀█
█ █▀▀▀▀▀█ █
▀▀ ▀▀
Kilroy was here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment