Skip to content

Instantly share code, notes, and snippets.

@eevee
eevee / gist:dd1056918e4b8730386a676ef1e0361b
Created May 5, 2021
chip's challenge mscc (first) vs nes (second)
View gist:dd1056918e4b8730386a676ef1e0361b
LESSON 1
Hints differ in case and/or spacing only
LESSON 2
Hints differ in case and/or spacing only
LESSON 3
Hints differ:
- Suction-boots for force floors. Fire boots for fire. Flippers for water. Skates for ice.
- MAGNET FOR␤FORCE FLOORS.␤HEAT SHIELD␤FOR FIRE.␤WATER SHIELD␤FOR WATER.␤CLEATS FOR ICE.
@eevee
eevee / Makefile
Created Dec 17, 2019
make choking on colon
View Makefile
title = Star\ Anise\ Chronicles:\ Escape\ from\ the\ Chamber\ of\ Despair
# Arch Linux
INFORM7_BIN = /usr/libexec/gnome-inform7
# Ubuntu x64
#INFORM7_BIN = /usr/lib/x86_64-linux-gnu/gnome-inform7
all: glulx
project = $(title).inform
View encounters-meta.py
# this could be made to work with surprisingly little effort.
# no, i won't tell you how. please don't do it
class SnarlingBeastEvent(EncounterEvent):
language = 'english'
title = "a snarling beast"
text = "a snarling beast leaps out of the underbrush."
language = 'pig latin'
title = "anway arlingsnay eastbay"
text = "anway arlingsnay eastbay eapslay outway ofway ethay underbrushway."
@eevee
eevee / aowr.dat
Created Jul 4, 2018
anise aowr as nybbles
View aowr.dat
00000000: 8888 8888 8888 8888 8888 8888 8888 8888 ................
00000010: 8888 8888 8888 8888 8888 8888 8888 8888 ................
00000020: 8888 8888 8888 8888 8888 8888 8888 8888 ................
00000030: 8888 8888 8888 8888 8888 8888 8888 8888 ................
00000040: 8888 8888 8888 8888 8888 8888 8888 8888 ................
00000050: 8888 8888 8888 8888 8888 8888 8888 8888 ................
00000060: 8888 8888 8888 8888 8888 8888 8888 8888 ................
00000070: 8888 8888 8888 8888 8888 8888 8888 8888 ................
00000080: 8888 8888 8888 8888 8888 8888 8888 8888 ................
00000090: 8888 8888 8888 8888 8888 8888 8888 8888 ................
@eevee
eevee / bitcrush.py
Created Jul 4, 2018
anise aowr bitcrusher
View bitcrush.py
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()
@eevee
eevee / untitled.cpp
Last active Mar 31, 2018
zero initialization in c++
View untitled.cpp
#include <iostream>
#include <string.h>
struct A {
int b;
};
int main() {
{
char blah[256];
@eevee
eevee / main.lua
Created Jan 21, 2018
non-working LÖVE app with a rotating quad that never draws
View main.lua
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
@eevee
eevee / beta.txt
Created Jan 3, 2018
generating a random angle by picking (x, y) from various distributions with 1M trials
View beta.txt
random.betavariate(2, 2) * 2 - 1
0 | ###########################################################################
10 | ###############################################################################
20 | #####################################################################################
30 | #############################################################################################
40 | ###################################################################################################
50 | ##############################################################################################
60 | #####################################################################################
70 | ###############################################################################
80 | ############################################################################
@eevee
eevee / nations-of-the-world.md
Last active Mar 27, 2018
Nations of the World (2017 edition)
View nations-of-the-world.md

(with apologies to Yakko Warner)

Lyrics

United States, Canada, Mexico, Panama,
Haiti, Jamaica, Peru,
Republic Dominican isn't Dominica,
Cuba, El Salvador, too.

@eevee
eevee / gist:8e667314eb935d8faef999ead9fc7f3f
Created May 30, 2017
lowercase texture names in doom 2
View gist:8e667314eb935d8faef999ead9fc7f3f
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