Skip to content

Instantly share code, notes, and snippets.

>> Setting github.com/clipperhouse/gen to version f73e38bc673e59dcb00148b929483a16a51c7e3e
The authenticity of host 'git.apache.org (192.87.106.249)' can't be established.
RSA key fingerprint is 27:ff:b8:fd:9a:c6:f3:c5:ad:94:7c:ed:b5:bd:a0:85.
Are you sure you want to continue connecting (yes/no)? yes
Password:
> Object.create(undefined)
TypeError: Object prototype may only be an Object or null
at Function.create (native)
at repl:1:9
at REPLServer.self.eval (repl.js:110:21)
at Interface.<anonymous> (repl.js:239:12)
at Interface.EventEmitter.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
at Interface._ttyWrite (readline.js:760:14)
// func recurse(jsonMap map[string]interface{}, parent *TreeNode) {
// data := jsonMap
// child := TreeNode{ nil, parent, data }
// for k, v := range jsonMap {
// switch vv := v.(type) {
// case string:
// fmt.Println(k, "is string")
// case int:
// fmt.Println(k, "is int")
package main
import (
"fmt"
)
type IMsg interface {
SetMsg(msg string)
Msg() string
}
♪ storm-allocation git:(master) lein run
12538 [main] INFO backtype.storm.zookeeper - Starting inprocess zookeeper at port 2000 and dir /var/folders/9g/4zdssv1j5dl9h5q1mnx9c0b80000gn/T//e38b8015-c39c-4231-a84f-aa76f60a3732
12822 [main] INFO backtype.storm.daemon.nimbus - Starting Nimbus with conf {"dev.zookeeper.path" "/tmp/dev-storm-zookeeper", "topology.tick.tuple.freq.secs" nil, "topology.builtin.metrics.bucket.size.secs" 60, "topology.fall.back.on.java.serialization" true, "topology.max.error.report.per.interval" 5, "zmq.linger.millis" 0, "topology.skip.missing.kryo.registrations" true, "storm.messaging.netty.client_worker_threads" 1, "ui.childopts" "-Xmx768m", "storm.zookeeper.session.timeout" 20000, "nimbus.reassign" true, "topology.trident.batch.emit.interval.millis" 50, "storm.messaging.netty.flush.check.interval.ms" 10, "nimbus.monitor.freq.secs" 10, "logviewer.childopts" "-Xmx128m", "java.library.path" "/usr/local/lib:/opt/local/lib:/usr/lib", "topology.executor.send.buffer.size" 1024, "storm.loc
♪ ~ echo $GOROOT
♪ ~ echo $GOPATH
/Users/nicholasf/code/go
♪ ~ go env
warning: GOPATH set to GOROOT (/Users/nicholasf/code/go) has no effect
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
1) Content Transformer Output Widget Modules should contain an entire html page:
Error: HTML page markup is required in widget placements: required expects 'true': Component test 'true' failed against input 'null'.
at null.<anonymous> (/Users/nicholasf/code/news/tcog/test/functional/helpers/bas.js:36:13)
at g (events.js:180:16)
at EventEmitter.emit (events.js:98:17)
at assertionError (/Users/nicholasf/code/news/tcog/node_modules/bas/lib/index.js:203:8)
at processSelector (/Users/nicholasf/code/news/tcog/node_modules/bas/lib/index.js:216:4)
at /Users/nicholasf/code/news/tcog/node_modules/bas/lib/index.js:266:6
at Array.forEach (native)
at testRuleGroup (/Users/nicholasf/code/news/tcog/node_modules/bas/lib/index.js:263:18)
> redis = require('redis');
{ debug_mode: false,
RedisClient:
{ [Function: RedisClient]
super_: { [Function: EventEmitter] listenerCount: [Function] } },
Multi: [Function: Multi],
createClient: [Function],
print: [Function] }
>
undefined
@nicholasf
nicholasf / gist:427d86b66bc1cc335f7b
Last active August 29, 2015 14:03
Do not spend time estimating by points, build history from short iteration, categorise development victories simply and use them for metrics.
* Do not assign points ahead of time.
* Run weekly interations.
* In retro, gather all of the completed tickets:
(1) Assign a weight to them - Trivial, Medium, Significant.
(2) Record which dev completed them, any other visibility metric required, etc..
(3) Write a journal entry that indicates a velocity based on a number Trivials|Mediums|Significants.
http://acme.org/document/1?transformer=untrusted-service
This calls ->
Document Service (our trusted application that produces a json document)
Document Service then calls Transformer Service via coreos service layer, passing in the json document.
Transformer Service looks up 'untrusted service' code, executes it, passing in the json and letting the untrusted transform logic run.