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
data:text/html,<body onload="c=z.getContext`2d`;f=c.fillRect.bind(c);n=Math.random;i=0;l=_=>clearInterval(i,i=0)"><canvas id=z onclick="v=-5;i||=setInterval(_=>{z.width+=0;c.fillText(s,1,9);Y>141&&l();f(0,Y+=v++,9,9);p=p.map(([x,y])=>(f(x,0,9,y),f(x,y+31,9,150),x<9&&(Y<y||Y>y+31)&&l(),--x>-9?[x,y]:[x+360,n()*86,s++]))},Y=60,s=0,p=[1,2,3].map(x=%3E[120*x,n()*86]))%22%3E |
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
<body onload="d=m=document;n=Math.random;c=z.getContext`2d`;f=g=>c.fillStyle=g;r=(...y)=>c.fillRect(...y);L=_=>{clearInterval(m);v=i=X=m=s=0;h=71;P=[1,2,3].map(k=>({x:X+=150,y:n()*86}))};L();R=_=>{f`gold`;r(0,0,X,X);f`red`;for({x,y} of P){r(x,0,16,y);r(x,y+48,16,102-y)}r(0,h,8,8);c.fillText(s,0,8)};R();d.onclick=_=>{v=-5;m=m||setInterval('h=h*(h>0);h>=142&&L();h+=v+=0.5;for(p of P){p.x-=2;if(p.x<-31){p.x+=450;p.y=n(s++)*86}p.x<8&&(h<p.y||h>p.y+48)&&L()}R()',35)}"><canvas id=z> |
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
data:text/html,<body onload="d=m=document;n=Math.random;c=z.getContext`2d`;f=g=>c.fillStyle=g;r=(...y)=>c.fillRect(...y);L=_=>{clearInterval(m);v=i=X=m=s=0;h=71;P=[1,2,3].map(k=>({x:X+=150,y:n()*86}))};L();R=_=>{f`gold`;r(0,0,X,X);f`red`;for({x,y} of P){r(x,0,16,y);r(x,y+48,16,102-y)}r(0,h,8,8);c.fillText(s,0,8)};R();d.onclick=_=>{v=-5;m=m||setInterval('h=h*(h>0);h>=142&&L();h+=v+=0.5;for(p of P){p.x-=2;if(p.x<-31){p.x+=450;p.y=n(s++)*86}p.x<8&&(h<p.y||h>p.y+48)&&L()}R()',35)}"><canvas id=z> |
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
from itertools import * | |
print([len(list(filterfalse(lambda x: any(map(lambda y: y in x, (1,5))) or any(map(lambda y: x.count(y) >=3, (2,3,4,6))) or x == [1,2,3,4,5,6] or x in map(lambda x: sorted(x*2),combinations([2,3,4,6],3)),map(lambda x: sorted(x),product(range(1,7),repeat=n)))))/6**n for n in range(1,7)]) |
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
import time | |
import sys,os | |
import serial | |
def follow(f): | |
while True: | |
line = f.readline() | |
if not line: | |
time.sleep(0.1) | |
continue |
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
#ifndef BITFIELDS_H_ | |
#define BITFIELDS_H_ | |
#include <stdint.h> | |
#define bitfield_typedef(name,bits...) \ | |
typedef enum {bits} name ## _bits; \ | |
typedef _bitfield_type(bits) name | |
#endif |
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
<? | |
$file = fopen("ip.txt",'w'); | |
fwrite($file, $_SERVER["REMOTE_ADDR"]); | |
fclose($file); | |
?> |