0 Members and 1 Guest are viewing this topic.
[..." sos"].map(c=>{p=" etianmsurwdkgohvfüläpjbxcyzqö 54\x063é 2&è+ à 16=/ ç\2( 7 ñ8 90 \4 ?_ \" . @ ' - ;! ) , :".search(c)for(s="00";p>1;p=p/2|0)s=(p%2?"1110":"10")+sm+=p>0?s:s+s},m=i="");(w=new(require('wemo-client'))()).discover((e,d)=>{setInterval(_=>w.client(d).setBinaryState(+m[i++%m.length]),500)})
float Q_rsqrt( float number ){ long i; float x2, y; const float threehalfs = 1.5F; x2 = number * 0.5F; y = number; i = * ( long * ) &y; // evil floating point bit level hacking i = 0x5f3759df - ( i >> 1 ); // what the f***? y = * ( float * ) &i; y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration// y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed return y;}
Code: (node.js, 346 chars) [Select][..." sos"].map(c=>{p=" etianmsurwdkgohvfüläpjbxcyzqö 54\x063é 2&è+ à 16=/ ç\2( 7 ñ8 90 \4 ?_ \" . @ ' - ;! ) , :".search(c)for(s="00";p>1;p=p/2|0)s=(p%2?"1110":"10")+sm+=p>0?s:s+s},m=i="");(w=new(require('wemo-client'))()).discover((e,d)=>{setInterval(_=>w.client(d).setBinaryState(+m[i++%m.length]),500)})Probably the weirdest constant to ever appear in a program, guess what it does. (click to show/hide)Get one of these things, plug a lamp in and it does morse code with the correct timing.