Skip to content

Instantly share code, notes, and snippets.

@fliptopbox
Last active June 29, 2016 23:44
Show Gist options
  • Select an option

  • Save fliptopbox/ebcdabff58f76c5f9208b4afcf91f34f to your computer and use it in GitHub Desktop.

Select an option

Save fliptopbox/ebcdabff58f76c5f9208b4afcf91f34f to your computer and use it in GitHub Desktop.

Revisions

  1. fliptopbox revised this gist Jun 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion space invader
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    (function(e,t) {
    console.log('%s\nKilroy was here.', t.replace(/\w/g, function(x) {return e[x] || e.n;}));
    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:
  2. fliptopbox created this gist Jun 29, 2016.
    14 changes: 14 additions & 0 deletions space invader
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    (function(e,t) {
    console.log('%s\nKilroy was here.', t.replace(/\w/g, function(x) {return e[x] || e.n;}));
    }({a:' ',l:'▀',i:'▄',e:'█',n:'\n'}, "aaaliaaailaanaaieleeeleianaeleeeeeeelenaeaellllleaenaaaallallaaan"));

    console.log output:

    ▀▄ ▄▀
    ▄█▀███▀█▄
    █▀███████▀█
    █ █▀▀▀▀▀█ █
    ▀▀ ▀▀

    Kilroy was here.