Skip to content

Instantly share code, notes, and snippets.

View Sanqui's full-sized avatar
🦉

Sanqui Sanqui

🦉
View GitHub Profile
import colorsys
import png
import datamijn
from datamijn import dmtypes
VGATLAS_DIR = "/home/sanqui/romhacking/vgatlas/vgatlas"
name = "pokered"
rom_filename = "pokered.gbc"
143245| sanqui@kuriputoraido:~ $ /home/sanqui/Downloads/Telegram/Telegram
Fontconfig warning: line 5: unknown element "its:rules"
Fontconfig warning: line 6: unknown element "its:translateRule"
Fontconfig error: line 6: invalid attribute 'translate'
Fontconfig error: line 6: invalid attribute 'selector'
Fontconfig error: line 7: invalid attribute 'xmlns:its'
Fontconfig error: line 7: invalid attribute 'version'
Fontconfig warning: line 9: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: unknown element "its:translateRule"
diff --git a/constants.asm b/constants.asm
index 0b24ea0..58339bc 100644
--- a/constants.asm
+++ b/constants.asm
@@ -30,3 +30,8 @@ INCLUDE "constants/credits_constants.asm"
INCLUDE "constants/music_constants.asm"
INCLUDE "constants/tilesets.asm"
INCLUDE "constants/starter_mons.asm"
+
+INCLUDE "constants/misc.asm"
#!/usr/bin/python3
import struct
from sys import argv, stderr
from gbaddr import gbaddr, gbswitch
def readbyte(): return struct.unpack("B", rom.read(1))[0]
def readshort(): return struct.unpack("<H", rom.read(2))[0]
rom = open(argv[1], "rb")
# TODO load symfile
@Sanqui
Sanqui / gbaddr.py
Last active February 6, 2018 11:13
#!/bin/python3
from sys import argv
def gbaddr(arg):
if ":" in arg:
bank, pointer = arg.split(":")
bank = int(bank, 16)
pointer = int(pointer, 16)
address = None
if bank == 0 and pointer < 0x4000:
@Sanqui
Sanqui / dlxasm.lang.xml
Created November 28, 2016 09:39
dlx asm syntax highlighting for gedit. sudo cp dlxasm.lang /usr/share/gtksourceview-3.0/language-specs/
<?xml version="1.0" encoding="UTF-8"?>
<!--
Author: Sanqui
License: Public domain
-->
<language id="dlxasm" _name="dlxasm" version="2.0" _section="Sources">
<metadata>
<property name="mimetypes">text/x-dlxasm</property>
@Sanqui
Sanqui / README.md
Last active December 7, 2015 20:07
Setting up Let's Encrypt with nginx

The Let's Encrypt client doesn't have an automatic module for nginx yet. But don't worry, it's super easy anyway!

First of all, install letsencrypt-auto:

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt

Next, we'll run letsencrypt-auto once with no action: this will only install dependencies.

- name: Venusaur
lv: 56
hp: 140
type: Grass
weakess: Fire
resistance:
retreatcost: 4
moves:
- name: Giga Drain
- energy: GG**

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 C55A D67C 92CF 682F D641 45CF E9AE D11B F096 3207

To claim this, I am signing this object:

@Sanqui
Sanqui / 0_tables
Last active August 29, 2015 14:02
pokedex game data table extravaganza
map
"A game-specific physical instance of a location_area"
* location_area
* version_collection (?)
* width
* height
map_connection
"A physical connection between two maps"
* map0