Skip to content

Instantly share code, notes, and snippets.

@murilopolese
Created September 11, 2014 12:23
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 murilopolese/1d30423f7deb7bf0ff63 to your computer and use it in GitHub Desktop.
Save murilopolese/1d30423f7deb7bf0ff63 to your computer and use it in GitHub Desktop.
I miss sailing
console.sailing = function () {
var pos = 0;
setInterval( function() {
clear();
var line1 = '';
var line2 = '';
for( var i = 0; i < pos; i++ ) {
line1 += ' ';
line2 += ' ';
}
line1 += " |> ";
line2 += "\\___/";
pos = ( pos + 1 ) % 30;
console.log( line1 );
console.log( line2 );
}, 200 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment