Skip to content

Instantly share code, notes, and snippets.

@robatron
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robatron/b6d536fafeacef44c27f to your computer and use it in GitHub Desktop.
Save robatron/b6d536fafeacef44c27f to your computer and use it in GitHub Desktop.
Make Kirby dance in your browser's JavaScript console.
/**
* Make Kirby dance in your browser's JavaScript console.
*
* Great to run in your coworker's console when they forget to lock their computer.
*/
var i = 0;
var KFRAMES = [ "<('.'<)", "^('.')^", "(>'.')>", "^('.')^" ];
setInterval( function () {
clear();
console.log( KFRAMES[ i % ( KFRAMES.length - 1 ) ] );
++i;
}, 500);
var i=0,KFRAMES=["<('.'<)","^('.')^","(>'.')>","^('.')^"];setInterval(function(){clear(),console.log(KFRAMES[i%(KFRAMES.length-1)]),++i},500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment