Last active
December 23, 2015 15:59
-
-
Save sjoerdvisscher/6659546 to your computer and use it in GitHub Desktop.
Maybe I should put this on the back of my business card...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p><script>C='▣';f=[];R=[];P=0;while(k=('/SN;__/NK;OL/QN;__/OL;NK4L@@_C4_G@OL'+ | |
'4SO@__4QN@OL'+(l='3NB?_G3_K?OL/QN;__/SK;__4OL@__4LC@_G4LC@_G4_C@_G')+'-__9QL'+ | |
'-__9TQ-XT9XT-VS9TN+SO7__+__7OJ+SO7SO+QN7OL'+l).charCodeAt(P)){D='\0\0';for(j=0 | |
;k<95&j<1e4;)v=Math.max(-1e4,Math.min(1e4,1e6*Math.sin(j*Math.pow(2,k/12)/695)) | |
)/Math.exp(j++/5e3),D+=String.fromCharCode(v&255,v>>8&255);R[P++]=new Audio( | |
'data:audio/wav;base64,UklGRgAAAABXQVZFZm10IBAAAAABAAEAwF0AAIC7AAACABAAZGF0YSBO' | |
+btoa(D))}for(e=i=255;i;)f[i]=i--%12&&i<240?i%12?0:'<br>':' ';t=p=r=4;d=function | |
(c){for(q=p,i=1;q+=(i-1?i&8?[9,-37,-9,37]:[1,12,-1,-12]:[1,2,14,13])[r%4],i<99;i | |
*=2)if('36cqrtx'.charCodeAt(t)&i)if(-c){if(f[q])return 1}else f[q]=c};onkeydown= | |
m=function(c){Q=[-1,0,1,12][c?c.keyCode-37:3]||0;d(0);p+=Q;r+=!Q;if(s=d(1))p-=Q, | |
r-=!Q;d(C.fontcolor('ea3ea31fe7'.substr(t,6)));document.body.innerHTML='<font c' | |
+'olor=#eee>'+f.join('').replace(/0/g,C);return s};o=function(c){P=P%192;for(_= | |
3;_--;)R[P++].play();if(m()){t=(P+p)%7,p=r=4;e=d(1)?1e9:e;for(y=0;y<240;)if(f. | |
slice(y,y+=12).join().indexOf(0)<0)f=f.slice(0,13).concat(f. // tetriscard.html | |
slice(1,y-12),f.slice(y))}setTimeout(o,e*=.999)};o()</script> By Sjoerd Visscher |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment