Skip to content

Instantly share code, notes, and snippets.

@h3lls
h3lls / config.yml
Last active January 6, 2018 09:42
Make sure you also run: pip install python-binance and pip install flask for the web version
livecoin:
enabled: False
apikey: LIVECOINAPIKEY
sign: LIVECOINSIG
max_bid: 0.00011
poloniex:
enabled: False
apikey: POLONIEXAPIKEY
sign: POLONIEXSIG
binance:
@h3lls
h3lls / gist:da436421d80dffc28f282412275d31d0
Created September 3, 2017 08:27
Amiibo reader in EmulationStation
//EmulationStation, a graphical front-end for ROM browsing. Created by Alec "Aloshi" Lofquist.
//http://www.aloshi.com
#include <SDL.h>
#include <iostream>
#include <iomanip>
#include "Renderer.h"
#include "views/ViewController.h"
#include "SystemData.h"
#include <boost/filesystem.hpp>
@h3lls
h3lls / gist:893979
Created March 30, 2011 06:56
Binary Parsing For FFXIV Log Files
logfile = open(logfilename, 'rb')
# read in the length of this files records
headerparts = struct.unpack("2l", logfile.read(8))
headerlen = headerparts[1] - headerparts[0]
header = struct.unpack(str(headerlen)+"l", logfile.read(headerlen*4))
# header * 4 bytes for each and another 8 bytes for the header size
offset = headerlen*4+8
for headerpos in range(len(header)):
if headerpos == 0:
startbyte = offset
@h3lls
h3lls / postlog.php
Created January 20, 2011 05:05
CouchDB is great, let's see if Riak is too..
$doc = new stdClass();
$doc->type = "battle";
$doc->charactername = $record["charactername"];
$doc->monster = $record["monster"];
$doc->datetime = $record["datetime"];
$doc->monstermiss = $record["monstermiss"];
$doc->othermonstermiss = $record["othermonstermiss"];
$doc->damage = $record["damage"];
$doc->miss = $record["miss"];
$doc->hitdamage = $record["hitdamage"];