(with apologies to Yakko Warner)
United States, Canada, Mexico, Panama,
Haiti, Jamaica, Peru,
Republic Dominican isn't Dominica,
Cuba, El Salvador, too.
import os.path | |
import re | |
import sys | |
# LZ-ish decompression scheme borrowed from picolove: | |
# https://github.com/gamax92/picolove/blob/master/cart.lua | |
compression_map = b"\n 0123456789abcdefghijklmnopqrstuvwxyz!#%(){}[]<>+=/*:;.,~_" | |
def decompress(code): | |
lua = bytearray() |
JASC-PAL | |
0100 | |
65 | |
0 0 0 | |
0 23 125 | |
2 74 202 | |
0 132 255 | |
91 168 255 | |
152 220 255 | |
155 160 239 |
window.Potluck = {}; | |
let _index_to_coords = function(index, columns) { | |
return [index % columns, Math.floor(index / columns)]; | |
}; | |
Potluck.begin = function() { | |
let renderer = PIXI.autoDetectRenderer(800, 600); | |
document.body.appendChild(renderer.view); |
@__mote | |
@aBinaryTernary | |
@ach_crvens | |
@amymist | |
@BarryBenson2007 | |
@bulbasort | |
@BushytailSkwirl | |
@doniamae | |
@eevee | |
@eltoraz |
brick1 - 1 uses, total area 1024 ≈ 0.25 tiles | |
brown1 - 1 uses, total area 4608 ≈ 1.125 tiles | |
brownhug - 4 uses, total area 10702.049 ≈ 2.612805 tiles | |
compblue - 2 uses, total area 2035.1354 ≈ 0.49685922 tiles | |
door1 - 2 uses, total area 9216 ≈ 2.25 tiles | |
door1 - 2 uses, total area 9216 ≈ 2.25 tiles | |
doorblu - 2 uses, total area 3072 ≈ 0.75 tiles | |
doorstop - 19 uses, total area 2176 ≈ 0.53125 tiles | |
doorstop - 2 uses, total area 0 ≈ 0 tiles | |
doorstop - 20 uses, total area 0 ≈ 0 tiles |
random.betavariate(2, 2) * 2 - 1 | |
0 | ########################################################################### | |
10 | ############################################################################### | |
20 | ##################################################################################### | |
30 | ############################################################################################# | |
40 | ################################################################################################### | |
50 | ############################################################################################## | |
60 | ##################################################################################### | |
70 | ############################################################################### | |
80 | ############################################################################ |
local checkerboard | |
local shader | |
function love.load() | |
love.graphics.setDefaultFilter('nearest', 'nearest') | |
local imagedata = love.image.newImageData(8, 8) | |
imagedata:mapPixel(function(x, y, r, g, b, a) | |
if (x + y) % 2 == 1 then | |
return 192, 192, 192, 255 |
#include <iostream> | |
#include <string.h> | |
struct A { | |
int b; | |
}; | |
int main() { | |
{ | |
char blah[256]; |
import wave | |
TARGET_RATE = 16384 | |
with wave.open('aowr2.wav') as w: | |
with wave.open('aowrcrush2.wav', 'wb') as wout: | |
nchannels, sample_width, framerate, nframes, _, _ = w.getparams() | |
wout.setparams(w.getparams()) | |
outdata = bytearray() | |
gbdata = bytearray() |