Skip to content

Instantly share code, notes, and snippets.

View SuperSonicHub1's full-sized avatar

Kyle Anthony Williams SuperSonicHub1

View GitHub Profile
@SuperSonicHub1
SuperSonicHub1 / cleanup.py
Created March 24, 2024 19:47
Sample extraction script for Roland SPD-SX PRO factory reset data
"""
Sample extraction script for Roland SPD-SX PRO factory reset data
Resources:
- Factory Reset Data: https://www.roland.com/us/support/by_product/spd-sx_pro/updates_drivers/fe09f0e5-87a8-42e7-b1b8-24cf6280e93b/
- Spec sheet: https://www.roland.com/us/products/spd-sx_pro/specifications/
This code is public domain under the Unlicense: https://unlicense.org
"""
@SuperSonicHub1
SuperSonicHub1 / code.py
Created April 22, 2024 03:55
CircuitPython implementation of a "Vim clutch" for the RPi Pico
import board
import digitalio
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
kbd = Keyboard(usb_hid.devices)
button = digitalio.DigitalInOut(board.GP13)
button.switch_to_input(pull=digitalio.Pull.UP)
@SuperSonicHub1
SuperSonicHub1 / hyperop.rkt
Created May 16, 2024 00:42
My first Racket program: functional implementation of the hyperoperators
#lang racket
(require racket/match)
; https://en.wikipedia.org/wiki/Hyperoperation#Definition
; Because the base case is succession, it becomes unusable at tetration.
(define (hyperoperator-succ n a b)
(match (list n a b)
[(list 0 _ _) (+ b 1)]
[(list 1 _ 0) a]
[(list 2 _ 0) 0]
@SuperSonicHub1
SuperSonicHub1 / main.glsl
Last active December 9, 2024 03:20
Neato datamoshing GLSL shader for Shadertoy
// iChannel0: webcam
// iChannel1: Brittney
// make sure both sources are on repeat
// shoutouts to einrail
// Unlicensed: https://unlicense.org/
// Seconds
#define P1 15.
#define P2 2.
#define P3 20.
@SuperSonicHub1
SuperSonicHub1 / README.md
Last active March 30, 2025 15:01
Random patch generator for the Nymphes
@SuperSonicHub1
SuperSonicHub1 / main.py
Created March 30, 2025 16:09
Personal best progression comparison tool for TETR.IO
from datetime import datetime, timedelta
from requests import get
from requests.exceptions import HTTPError
import matplotlib.pyplot as plt
import timple
import timple.timedelta as tmpldelta
tmpl = timple.Timple()
tmpl.enable()
@SuperSonicHub1
SuperSonicHub1 / README.md
Last active April 10, 2025 12:23
Subdomains of MIT

Uses the Wayback CDX Server API.

Script expects a urls.json file. It can be retrieved with the following curl command

"https://web.archive.org/cdx/search/cdx?url=*.mit.edu&collapse=urlkey&output=json"

This will give you all unique URLs under the *.mit.edu namespace archived by the Wayback Machine. It's a few hundred megabytes, so the download may take a while.