Skip to content

Instantly share code, notes, and snippets.

View schmatz's full-sized avatar

Michael Schmatz schmatz

View GitHub Profile
@schmatz
schmatz / greed_human.js
Created June 12, 2014 18:35
Michael Heasell's CodeCombat Greed Code
// constants -------------------------------------------------------------------
var alliedTypes = {
peasant: 'peasant',
soldier: 'soldier',
knight: 'knight',
librarian: 'librarian',
griffinRider: 'griffin-rider',
captain: 'captain'
};
@schmatz
schmatz / gist:d5ca0ced06a0f3164d01
Last active June 21, 2017 06:05
Building Proxygen on OSX
From: https://thrift.apache.org/docs/install/os_x
Download Boost, compile
http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.gz/download
tar xzvf boost_1_57_0.tar.gz
./bootstrap.sh
sudo ./b2 threading=multi address-model=64 variant=release stage install
Download libevent, compile
@schmatz
schmatz / scaffold.go
Last active November 14, 2015 00:09 — forked from stephenmathieson/scaffold.go
go by example scaffold thing
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"regexp"
)
@schmatz
schmatz / keybase.md
Created June 23, 2014 00:54
Keybase proof

Keybase proof

I hereby claim:

  • I am schmatz on github.
  • I am schmatz (https://keybase.io/schmatz) on keybase.
  • I have a public key whose fingerprint is DB8F DAD8 AE0B D136 870E B706 E579 3ED2 81EE DC5F

To claim this, I am signing this object:

@schmatz
schmatz / greed_ogres.js
Created June 12, 2014 18:52
Ian Elliott's CodeCombat Greed code
var base = this;
if ( !base.init ) {
// Mark that we've ran the init code
base.init = true;
// Starting frame number
base.frames = 0;
// Amount of frames per second