Skip to content

Instantly share code, notes, and snippets.

View citizenll's full-sized avatar

citizenl citizenll

View GitHub Profile
lygaret / index.js
Last active January 18, 2023 17:26
ES6 Quasi-Literal for JSX
define(function(require) {
var React = require('react');
var paramRegex = /__(\d)+/;
var parser = new DOMParser();
var errorDoc = parser.parseFromString('INVALID', 'text/xml');
var errorNs = errorDoc.getElementsByTagName("parsererror")[0].namespaceURI;
// turns the array of string parts into a DOM
// throws if the result is an invalid XML document.
--[[ config
root = "./"
listen = ""
redisaddr = "[1]"
dbfile = root .. "backup.db"
thread = 4
logger = nil
harbor = 1
renatoalbano / encode_uri_rfc3986.erl
Created September 27, 2012 21:06
erlang percent encoding that works with utf-8
-author('Renato Albano <>').
%% Taken from <>,
%% from <>
%% and <>
encode([C | Cs]) when C >= $a, C =< $z ->
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;by doppelganger (
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
WolfgangSenff / gist:168cb0cbd486c8c9cd507f232165b976
Last active May 22, 2024 18:55
Godot 4.0 Migration/Upgrade guide
## For a beginner-friendly version of the following (more advanced users likely will get better use of the below,
## if you're just starting out...), see this new gist:
This document represents the beginning of an upgrade or migration document for GDScript 2.0 and Godot 4.0. I'm focusing on 2D
at the moment as I'm upgrading a 2D game, but will hopefully have more to add for 3D afterward.
## If you want more content like this, please help fund my cat's medical bills at - thank you very much! On to the migration guide.