Skip to content

Instantly share code, notes, and snippets.

View ZoomTen's full-sized avatar
🤔
Rabble rabble tech blabble

Zumi ZoomTen

🤔
Rabble rabble tech blabble
View GitHub Profile
@ZoomTen
ZoomTen / make_gbasm_docs.py
Last active July 3, 2023 11:45
Doxygen filter for Game Boy asm
#!/usr/bin/env python3
"""
below is the kind of docstrings it'll work with
it's admittedly very limited
;;
; Here's a Doxygen-format docstring.
;
; @param hl Target
@ZoomTen
ZoomTen / midicsv_convert_timebases.py
Last active June 8, 2023 14:28
Given MIDICSV output, convert MIDI timebase to a target timebase
#!/usr/bin/python
import csv
import sys
if len(sys.argv) < 2:
print("midicsv_convert_timebases.py [to_timebase]")
print()
print("e.g. midicsv MYMIDI.mid | midicsv_convert_timebases.py 96 | csvmidi - > MYMIDI_corrected.mid")
exit(0)
@ZoomTen
ZoomTen / 00-README.md
Last active April 29, 2023 14:08
improved gbs rip distribution generator script for HCS64
@ZoomTen
ZoomTen / 00-README.md
Last active April 29, 2023 14:08
Convert GBS to GBSX using a JSON definition.
@ZoomTen
ZoomTen / mkfeed_gitea.py
Created July 25, 2022 16:06
Gitea to RSS scraper
#!/usr/bin/env python3
import html
from datetime import datetime, timedelta, timezone
import re
import json
import sys
import requests
from bs4 import BeautifulSoup
@ZoomTen
ZoomTen / README.md
Created July 9, 2022 07:34
HOWTO: Convert .pcf(.gz) fonts into TTF

Converting PCF fonts to TTF

Let's assume we're converting helvBO24.pcf, a version of Helvetica Bold Oblique for 24px that comes with X11. The output file will be helvBO24_fixed.ttf.

Step 1

Convert the thing to bdf through pcf2bdf

pcf2bdf helvBO24.pcf > helvBO24.bdf
@ZoomTen
ZoomTen / opencv_pose_func.py
Created August 20, 2020 14:24
realtime pose stuff in blender with opencv
# based upon https://github.com/jkirsons/FacialMotionCapture_v2/blob/master/OpenCVAnimOperator.py
# with elements taken from https://github.com/legolas123/cv-tricks.com/blob/master/OpenCV/Pose_Estimation/run_pose.py
# in blender, run this script second
import bpy
import sys
import time
import numpy
/*
you.js - "You Are an Idiot" script
The Commentary
*/
// bookmark - adds IE favorite, reminding you that you're an idiot
function bookmark(){
if ( (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4) ){
var url="http://offiz.bei.t-online.de/idiot.html";
var title="Idiot!";
@ZoomTen
ZoomTen / ASMDOC.md
Last active September 11, 2021 14:05
ASMDOC (lol)

ASMDOC

(a.k.a Hell on Earth, I'm Sure)

Essentially, this is just a Javadoc-esque thing loosely applied to assembly language (primarily geared towards RGBDS ASM)

The opening and closing tags are just a line containing only ;;--, everything inside the ASMDOC must begin wih ;; .

@ZoomTen
ZoomTen / build_Wine.sh
Last active September 11, 2021 13:47
Build Wine
#!/bin/bash
CFLAGS="${CFLAGS/-fno-plt/}"
LDFLAGS="${LDFLAGS/,-z,now/}"
mkdir -p usr/lib
mkdir -p usr/lib64
mkdir -p build64
mkdir -p build32