Skip to content

Instantly share code, notes, and snippets.

@codeincontext
Last active December 31, 2015 17:39
Show Gist options
  • Save codeincontext/8021248 to your computer and use it in GitHub Desktop.
Save codeincontext/8021248 to your computer and use it in GitHub Desktop.
MERRY CHRISTMAS!
w=console.log.bind(console),t=13,l=0,s=function(b,c){return new Array(b).join(c)};
f=function(){clear();l=!l;w('\u001B[2J\u001B[0;0f');w(s(t-1,' ')+(l?'\\ /':''));w(s(t-3,' ')+(l?'-->*<--':' .'));
for(i=1;i<t;i++){w(s(t-i,' ')+'/'+s(i,'_'+(i%2?'/':'\\'))+'_\\')}w(s(t-2,' ')+'[___]');setTimeout(f,600)};f()
@codeincontext
Copy link
Author

added browser console support (thanks, @WickyNilliams!)

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