Skip to content

Instantly share code, notes, and snippets.

@gullyn
gullyn / flappy.html
Last active December 13, 2024 23:38
Flappy bird in 205 bytes (improved!)
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c>
@jamesdear
jamesdear / pika_native_publish.py
Created May 27, 2012 20:23
Publish 100 messages with pika twisted vs pika native
import sys
import pika
import time
pika.log.setup(color=True)
connection = None
channel = None
# Import all adapters for easier experimentation