Skip to content

Instantly share code, notes, and snippets.

@foodini
foodini / retrack.py
Created November 3, 2023 18:47
A brief python program to convert IQ's Pirates music to my Shadertoy tracker.
#!/usr/bin/env python3
from collections import defaultdict
import re
chan1 = '''
// F2
x = t; b = 0.0;
D(36)D(2)D(2)D(20)D(2)D(16)D(6)D(2)D(226)
y += instrument( 174.0, tint*(t-x) );
@foodini
foodini / ascii_to_keycode_map.py
Created October 28, 2023 23:46
ascii mapper for shadertoy keyboard/font demo
#!/usr/bin/env python3
# For https://www.shadertoy.com/view/XlGfzt
maps = [0] * 256
shifts = [False] * 256
#arrows
for i in range(16,20):
maps[i] = i+21
@foodini
foodini / keybase.md
Created February 9, 2020 06:09
keybase.md

Keybase proof

I hereby claim:

  • I am foodini on github.
  • I am f00dini (https://keybase.io/f00dini) on keybase.
  • I have a public key ASDBwKcWTxfM7Miq5SzFE8253s4KSa8qFgpbW7bqQAZRxwo

To claim this, I am signing this object: