This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"io/ioutil" | |
"log" | |
"os" | |
) | |
// reads array or hash, writes pretty JSON |