Skip to content

Instantly share code, notes, and snippets.

View emicklei's full-sized avatar
💭
working on Melrose Music Programming

Ernest Micklei emicklei

💭
working on Melrose Music Programming
View GitHub Profile
package main
import (
"fmt"
"log"
"sync"
"time"
)
// Bucket holds a limited number of tokens which can be Taken (immediate or wait blocking) and must be Returned.
@emicklei
emicklei / Dockerfile
Created March 20, 2015 15:34
docker file for compiling chipmunk Go binding with release 7.0.0
FROM golang:1.4.2-wheezy
# cmake, protobuf
#
RUN apt-get update
RUN apt-get install --no-install-recommends -yqq cmake g++
ENV CXX /usr/bin/g++
# Chipmunk
#
@emicklei
emicklei / gist:8648546
Created January 27, 2014 13:27
jsonfmt
package main
import (
"encoding/json"
"io/ioutil"
"log"
"os"
)
// reads array or hash, writes pretty JSON