Skip to content

Instantly share code, notes, and snippets.

@theterminalguy
Last active March 31, 2018 19:34
Show Gist options
  • Save theterminalguy/c74e75ddff84231e5a55bb34eb3200fb to your computer and use it in GitHub Desktop.
Save theterminalguy/c74e75ddff84231e5a55bb34eb3200fb to your computer and use it in GitHub Desktop.
Credit goes to Martin Kleppe (https://twitter.com/aemkei?lang=en)
<body onload='setInterval(onkeydown=d=>{
for(d=d||5,(e=d.keyCode)&&(d=e%2?e%3?-1:1:5)
,t="",d=c-d,e=a|b<<d,0>d|a&b<<d&&(a=e=parseInt((a|b<<c)
.toString(d=32).replace(/v/,""),d),b=new Date%22?1:3)
,c=d,i=1;31>i;)O.innerHTML=t+=".#"[1&(1<<30|e).
toString(2)[i]]+(i++%5?"":"\n")},666,a=0,b=3,c=32)'>
<pre id=O>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment