Skip to content

Instantly share code, notes, and snippets.

View Sanqui's full-sized avatar
🦉

Sanqui Sanqui

🦉
View GitHub Profile

Keybase proof

I hereby claim:

  • I am Sanqui on github.
  • I am sanqui (https://keybase.io/sanqui) on keybase.
  • I have a public key whose fingerprint is 1228 DF20 EE44 31F7 C932 FA02 C431 F762 0475 722A

To claim this, I am signing this object:

@Sanqui
Sanqui / Makefile
Last active August 29, 2015 13:58
modern RGBDS project example
all: game.gb
game.o: game.asm
rgbasm -o game.o game.asm
game.gb: game.o
rgblink -n game.sym -m $*.map -o $@ $<
rgbfix -jv -i XXXX -k XX -l 0x33 -m 0x01 -p 0 -r 0 -t game $@
clean:
@Sanqui
Sanqui / help.js
Last active August 29, 2015 13:57
// how the hell do I do this
function script() {
this.turn_player() // instant action, so it's cool
this.speak("Hello!") // blocking - must wait for user input
answer = this.ask("Are you feeling well?") // uh oh...
if (answer) { // runtime condition
this.speak("That's nice!") //welp.
}
else {
@Sanqui
Sanqui / vmu_dec.asm
Created January 10, 2014 18:10
vmu decompressor for a nybble-based 1bpp compression
decompress_quit:
jmp goodbye
decompress_ret:
jmp decompress_done
decompress:
xor acc
ldc
be #$ff, decompress_quit
@Sanqui
Sanqui / twitchautoban.py
Last active December 26, 2015 01:19
xchat twitch auto bot ban
__module_name__ = "twitchautoban"
__module_version__ = "0.1.0"
__module_description__ = "bans twitch spambots lol"
import xchat
import os
import re
print "twitchautoban loaded!"
@Sanqui
Sanqui / test.yaml
Last active December 25, 2015 10:19
yaml references example
types:
- type: &grass
name: "Grass"
advantages: []
moves:
- move: &vinewhip
power: 40
type: *grass
pokemon:
@Sanqui
Sanqui / telefang.lua
Created September 20, 2013 13:40
how many telefangmons are there
colors = { black= {0, 0, 0}, red= {255, 0, 0}, white= {255, 255, 255}, green={0, 127, 0},
yellow={255,255,0}, purple={255,50,255}}
denjuunames = {
[0x0] = "Tsunonasu",
[0x1] = "Kochia",
[0x2] = "Oshe",
[0x3] = "Keshi",
[0x4] = "Crypto",
[0x5] = "Monstera",
@Sanqui
Sanqui / relative_search.py
Created July 12, 2013 18:09
useful for rom hacking, i guess "optimized" for "speed"
#!/bin/pypy
alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
from sys import argv
text = argv[1]
file = open(argv[2], 'rb')
@Sanqui
Sanqui / maze.py
Last active December 16, 2015 18:29
part of a larger program
#!/bin/python
# encoding: utf-8
import random
# DIMENSIONS MUST BE ODD!
WIDTH = 17
HEIGHT = 17
SQUARE = 14
@Sanqui
Sanqui / boom-plus-plus.lua
Last active February 16, 2019 19:38
A Lua script for corrupting Gameboy and Gameboy Advance games live. Supply to VBA-RR. Consult your doctor before use.
--
-- ░█▀▄░█▀█░█▀█░█▄█░░░░█░░░█░█░█▀█
-- ░█▀▄░█░█░█░█░█░█░░░░█░░░█░█░█▀█
-- ░▀▀░░▀▀▀░▀▀▀░▀░▀░▀░░▀▀▀░▀▀▀░▀░▀
--
--
-- Fair warning: this code is about as bad as the things it does to games.
-- GBA support experimental and frankly quite boring.