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
import terjemahkan
jadikan:
n = 10
untuk i dari 1..2:
jadikan: j = n + i
variabel:
a = 10
cetak "j itu ", j
@ZoomTen
ZoomTen / TAGS_M3U.md
Created February 24, 2024 16:55
!tags.m3u implementation details for GME & others

!tags.m3u

!tags.m3u is a file from the vgmstream specifications.

Global tags

Global tags start with a @ should apply to the entire set as a default value when a local tag isn't set.

  • @album: usually the game name
  • @company: map to either company, copyright, or publisher
@ZoomTen
ZoomTen / Dockerfile
Last active August 16, 2023 10:24
Furnace-devel Docker image setup
# first phase, build Furnace
FROM alpine:3.18 AS builder
RUN apk add --no-cache --update \
git cmake ninja gcc g++ alsa-lib-dev mesa-dev musl-dev
RUN git clone --recursive https://github.com/tildearrow/furnace
WORKDIR /furnace
@ZoomTen
ZoomTen / HOWTO.md
Created July 11, 2023 02:32
How to bootstrap Nim

Building the compiler

Which version do you want to install?

VERSION=v1.6.14

Clone the Nim repo

git clone --depth 1 --branch $VERSION https://github.com/nim-lang/Nim
# based on https://github.com/choltreppe/parlexgen
import std/[strutils, options, strformat]
import parlexgen, macros
type
# kinds of expressions
ExpKind = enum
expNum, # a numeric constant
# operators
# requires "regex >= 0.20.2"
import strformat
import os
import strutils
import regex
when is_main_module:
var is_in_doc: bool = false
var matches: RegexMatch
@ZoomTen
ZoomTen / scan_includes.nim
Last active August 13, 2023 11:41
Port of pret's scan-includes tool. Not quite perfect, and it's about half as fast.
# requires "regex >= 0.20.2"
import strformat, strutils
import parseopt
import os
import options
import regex
type ProgramOptions = object
strict: bool
@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
Convert GBS to GBSX using a JSON definition.