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

Notes on uploading to MinIO through HTTP

Some definitions

iso_datetime
Date and time in ISO 8601 UTC, e.g. 20240428T051943Z = 2024-04-28 (time T) 05:19:43 (UTC Z)
iso_date
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 / 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 / 00-COMPATIBILITY.md
Last active August 8, 2023 00:46
MBC30 Compatibility Reference

MBC30 Compatibility Reference Table

MBC30 is a variant of the common MBC3 mapper that can access twice the memory as the regular variant. MBC30 allows for up to 4mb ROM and 64kb SRAM over MBC3's 2mb ROM and 32kb SRAM. It is only known to be used in the Japanese version of Pokemon Crystal, mainly for Mobile System GB features.

The added space provided by this variant is considered beneficial especially for ROM hacks. For example, Pokemon Coral (2022 demo and up) uses it for sampled cries and other extra content.

Note on hardware compatibility

Everdrives will not work, unless an OS update is released. Until then, you'll need to make/buy an MBC30 flashcart (such as this project, or BennVenn's custom cart), and have reflashing tools.

@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 / 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