Skip to content

Instantly share code, notes, and snippets.

View tec27's full-sized avatar

Travis Collins tec27

View GitHub Profile
@tec27
tec27 / drawceptionfixes.user.js
Created April 18, 2012 04:48
Drawception Fixes
// ==UserScript==
// @name Drawception Fixes
// @description Fixes for some common Drawception issues
// @author tec27
// @version 0.1
// @match http://drawception.com/play/*
// ==/UserScript==
/*jshint laxcomma:true browser:true asi:true*/
var fixes = function($) {
@tec27
tec27 / building nullclient outside of libpurple
Created March 3, 2012 07:39
libpurple build configure for external usage
gcc `pkg-config --libs glib-2.0 gobject-2.0 libxml-2.0` `pkg-config --cflags glib-2.0 libxml-2.0 nss` -I/usr/local/include/libpurple/ -DPURPLE_DISABLE_DEPRECATED nullclient.c -lpurple -lresolv -o nullclient
@tec27
tec27 / nibbler.js
Created January 30, 2012 07:29
Nibbler - multi-byte non-byte-aligned reader for little endian files
// Nibbler - wrapper for Cursorize that allows for reading things that don't fall on even byte boundaries
// (individual bits, reading 5 bits from one byte and 3 bits from the next, etc.)
// Yes, this name is a reference to Futurama. And yes, like the character there, this will likely
// shit up your program with really valuable functionality!
var Nibbler = module.exports = function(curs) {
if(!(this instanceof Nibbler)) return new Nibbler(curs);
this.curs = curs;
this.shifted = 0;
@tec27
tec27 / blizzerial.js
Created January 28, 2012 04:33
New Blizzerial Parsing (Chains!)
// 3rd attempt at blizzerial parsing. Hopefully this time it will be easy to follow,
// easy to test, and fast. Pick 2. :D
var Cursorize = require('./cursorize'),
BigInteger = require('bigdecimal').BigInteger;
var Blizzerial = exports = module.exports = function() {
if(!(this instanceof Blizzerial)) return new Blizzerial();
this.chain = [];
};
@tec27
tec27 / liquidgist.user.js
Created January 21, 2012 23:42
Gist Link -> Gist Embed for TeamLiquid (greasemonkey/userJS)
// ==UserScript==
// @name LiquidGist
// @description Turns Github Gist links on TeamLiquid threads into Gist embeds automatically
// @author tec27
// @version 0.3
// @include http://www.teamliquid.net/forum/viewmessage.php*
// @include http://teamliquid.net/forum/viewmessage.php*
// @include http://www.teamliquid.net/forum/postmessage.php
// @include http://teamliquid.net/forum/postmessage.php
// ==/UserScript==