Skip to content

Instantly share code, notes, and snippets.

View eevee's full-sized avatar
🦊

Eevee eevee

🦊
View GitHub Profile
@eevee
eevee / wordle2.py
Created January 22, 2022 03:36
wordl brute-force (best run with pypy) (there is no CLI sorry)
# don't @ me
import collections
import random
import re
import string
LENGTH = 5
class Datum:
@eevee
eevee / gist:dd1056918e4b8730386a676ef1e0361b
Created May 5, 2021 23:43
chip's challenge mscc (first) vs nes (second)
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 December 17, 2019 06:21
make choking on colon
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
# 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 July 4, 2018 01:29
anise aowr as nybbles
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 July 4, 2018 01:28
anise aowr bitcrusher
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 March 31, 2018 20:55
zero initialization in c++
#include <iostream>
#include <string.h>
struct A {
int b;
};
int main() {
{
char blah[256];
@eevee
eevee / main.lua
Created January 21, 2018 05:28
non-working LÖVE app with a rotating quad that never draws
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 January 3, 2018 02:37
generating a random angle by picking (x, y) from various distributions with 1M trials
random.betavariate(2, 2) * 2 - 1
0 | ###########################################################################
10 | ###############################################################################
20 | #####################################################################################
30 | #############################################################################################
40 | ###################################################################################################
50 | ##############################################################################################
60 | #####################################################################################
70 | ###############################################################################
80 | ############################################################################
@eevee
eevee / nations-of-the-world.md
Last active March 27, 2018 20:23
Nations of the World (2017 edition)

(with apologies to Yakko Warner)

Lyrics

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