raynos at raynos-ThinkPad-T440p
~/gocode/src/github.com/uber/zanzibar on master*
$ go test -benchmem -cpu 2 -bench . ./wut_test.go
testing: warning: no tests to run
BenchmarkClosure-2 10000000 113 ns/op 64 B/op 2 allocs/op
BenchmarkStruct-2 10000000 129 ns/op 64 B/op 2 allocs/op
PASS
ok command-line-arguments 2.684s
This file contains hidden or 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 staticConfig | |
import ( | |
"io/ioutil" | |
"reflect" | |
"encoding/json" | |
"github.com/buger/jsonparser" | |
"github.com/pkg/errors" |
This file contains hidden or 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
# Use go test to generate coverage into ./coverage/cover.out | |
# go test ./... -cover -coverprofile ./coverage/cover.out | |
.PHONY: view-istanbul | |
view-istanbul: | |
@go get github.com/axw/gocov/gocov | |
@gocov convert ./coverage/cover.out > coverage/gocov.json | |
@node ./scripts/gocov-to-istanbul-coverage.js ./coverage/gocov.json \ | |
> coverage/istanbul.json | |
istanbul report --root ./coverage --include "**/istanbul.json" html |
This file contains hidden or 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
raynos at raynos-SVS15127PXB ~/uber/tchannel/node on hyperbahn-advertise | |
$ npm install | |
npm http GET https://registry.npmjs.org/crc | |
npm http GET https://registry.npmjs.org/bufrw | |
npm http GET https://registry.npmjs.org/error | |
npm http GET https://registry.npmjs.org/farmhash | |
npm http GET https://registry.npmjs.org/hexer | |
npm http GET https://registry.npmjs.org/json-stringify-safe | |
npm http GET https://registry.npmjs.org/lru-cache | |
npm http GET https://registry.npmjs.org/readable-stream |
This file contains hidden or 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
raynos at raynos-SVS15127PXB ~/uber/tchannel/node on hyperbahn-advertise* | |
$ npm install | |
npm http request GET https://registry.npmjs.org/bufrw | |
npm http request GET https://registry.npmjs.org/crc | |
npm http request GET https://registry.npmjs.org/error | |
npm http request GET https://registry.npmjs.org/farmhash | |
npm http request GET https://registry.npmjs.org/hexer | |
npm http request GET https://registry.npmjs.org/json-stringify-safe | |
npm http request GET https://registry.npmjs.org/lru-cache | |
npm http request GET https://registry.npmjs.org/readable-stream |
This file contains hidden or 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
'use strict'; | |
var through = require('through'); | |
var ss = require('stream-serializer').json; | |
var net = require('net'); | |
var dba = null; | |
var dbb = null; | |
function boilerplateCreateServer(db) { |
This file contains hidden or 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
var h = require("virtual-hyperscript"); | |
// Children as arguments[2] | |
h("div", { | |
"aria-hidden": true, | |
"ev-click": onClick, | |
}, [ | |
h("p", { | |
"aria-hidden": true, |
This file contains hidden or 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
'use strict'; | |
/*usage: | |
```js | |
var IOError = require('error/io'); | |
var fs = require('fs'); | |
fs.readFile(fPath, function (err, file) { | |
if (err) { |