Skip to content

Instantly share code, notes, and snippets.

View dancompton's full-sized avatar
🌴
On vacation

dancompton dancompton

🌴
On vacation
View GitHub Profile
grammar Jsonnet;
jsonnet
: expr EOF
;
expr
: value=(NULL | TRUE | FALSE | SELF | DOLLAR | STRING | NUMBER ) # Value
| '(' expr ')' # Parens
| '{' objinside? '}' # Object
@dancompton
dancompton / timestamp.go
Created October 5, 2015 21:48 — forked from bsphere/timestamp.go
UNIX timestamps in Golang
package timestamp
import (
"fmt"
"labix.org/v2/mgo/bson"
"strconv"
"time"
)
type Timestamp time.Time