Skip to content

Instantly share code, notes, and snippets.

View MatthewCallis's full-sized avatar
🍖
Hungry Goriya

Matthew Callis MatthewCallis

🍖
Hungry Goriya
View GitHub Profile
@prologic
prologic / LearnGoIn5mins.md
Last active August 12, 2025 02:24
Learn Go in ~5mins
@Treeki
Treeki / TurnipPrices.cpp
Last active July 26, 2025 06:27
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@s875515
s875515 / rollupReadEnvFile.js
Last active July 2, 2021 02:14
Because of the "rollup-plugin-dotenv" isn't being update all that much, so I use "@rollup/replace" and "dotenv" in conjunction.
const replace = require('@rollup/plugin-replace');
const envKeys = () => {
const envRaw = require('dotenv').config().parsed || {};
return Object.keys(envRaw).reduce(
(envValues, envValue) => ({ ...envValues, [`process.env.${envValue}`]: JSON.stringify(envRaw[envValue]) }),
{}
);
};
@LuigiBlood
LuigiBlood / SpecialTeeShot_SRAMpatch.asm
Last active April 30, 2022 16:37
Special Tee Shot - Satellaview to SFC conversion Patch
//Special Tee Shot - SFC Conversion Patch
//Patches header and SRAM access
//
//by LuigiBlood
//Uses ARM9 bass fork
//On SNES Mini, use Preset ID 0x1058 (Kirby's Dream Course preset)
//Doc:
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active August 4, 2025 13:45
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@ilyakmet
ilyakmet / wasmRustNodeExample.md
Last active December 19, 2020 17:38
WASM Rust to Node Example

WASM Rust to Node Example

Use only > 8.x.x NodeJS version

Install Rust before using this tutorial: curl https://sh.rustup.rs -sSf | sh

Create dirs:

mkdir wasmRustNodeExample

cd wasmRustNodeExample
@tcdw
tcdw / read_song.js
Last active April 2, 2019 18:55
Dump song directly from Classic Road II
#!/usr/bin/env node
/*
Classic Road II music ripper
by tcdw
Usage:
1. Get the Classic Road II ROM
2. Get your template SPC file:
2.1. Dump a SPC via your SNES emulator from the game, and hex edit x1F4 to 0x00
@fnky
fnky / ANSI.md
Last active August 25, 2025 13:17
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@digarok
digarok / lz4.s
Created October 29, 2018 15:35
LZ4 65816 decompress special format
* Format is : 2-byte length word followed by compressed stream
MX %00
*-------------------------------------------------------------------------------
LZ4_Unpack STY LZ4_DestOffset+1 ; Y = Destination offset
STX LZ4_HeaderLenByte+1 ; X = Src offset (with 2 byte len header)
STX LZ4_HeaderAddr+1 ; and the address of the offset
STA LZ4_Literal_3+1 ; Uncompress a LZ4 Packed Data buffer (64 KB max)
SEP #$20 ; A = Bank Src,Bank Dst
STA LZ4_Match_5+1 ; X = SRC Byte offset