Skip to content

Instantly share code, notes, and snippets.

View mhchia's full-sized avatar

Kevin Mai-Husan Chia mhchia

View GitHub Profile
@mhchia
mhchia / test-proto-tracerstate.go
Last active August 10, 2018 17:24
To reproduce `proto: duplicate proto type registered: basictracer_go.wire.TracerState`
package main
import (
logging "github.com/ipfs/go-log"
appdash "sourcegraph.com/sourcegraph/appdash"
appdashtracer "sourcegraph.com/sourcegraph/appdash/opentracing"
)
func main() {
remoteCollector := appdash.NewRemoteCollector("localhost:8701")
@mhchia
mhchia / test.py
Last active August 4, 2017 03:34
I fail to use `RLPList` in viper in this case
from ethereum.tools import tester as t
from ethereum import utils
import rlp
code = """
def test(a1: bytes <= 1000) -> num:
tempa = RLPList(a1, [num])
return tempa[0]
"""