Skip to content

Instantly share code, notes, and snippets.

@gullyn
gullyn / flappy.html
Last active May 4, 2024 15:35
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>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomtom87
tomtom87 / currency forecast q1 q2
Created March 13, 2017 12:05
User script for tradingeconomics.com/forecast/currency
// ==UserScript==
// @name Q1 and Q2 differences on forcast
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Shows the differences on forcasts for Q1 Q2
// @author Tom Whitbread
// @match http://www.tradingeconomics.com/forecast/currency
// @grant none
// ==/UserScript==
@gayanhewa
gayanhewa / rtl8821ae.conf
Created November 27, 2016 06:48
Realtek 8821ae driver config for linux. This avoids the connection drops for the 8821ae driver. Tested against debian jessie
options rtl8821ae debug=0 disable_watchdog=N fwlps=N swlps=Y swenc=Y ips=N msi=0
@dhadka
dhadka / demo.ipynb
Last active March 1, 2021 14:03
Simple Platypus Demo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bcomnes
bcomnes / redshift.conf
Created December 9, 2012 07:35
My configuration file for Redshift. Place it in ~/.config/ Drag redshift onto the Startup Applications menu to have it boot on start
; Global settings
[redshift]
temp-day=6500K
temp-night=5000
transition=1
;gamma=0.8:0.7:0.8
gamma=1.000:1.000:1.000
location-provider=geoclue
;location-provider=manual
adjustment-method=vidmode
class Cutie:
def __init__(self, name, cuteness):
self.name = name
self.cuteness = cuteness
def describe(self):
return self.name + " is " + "very " * self.cuteness + "cute"
print Cutie("Edmund", 10).describe()