Skip to content

Instantly share code, notes, and snippets.

View qbig's full-sized avatar

Liang qbig

  • @us3r-network
  • Singapore
View GitHub Profile
@qbig
qbig / ethereum_ecrecover_native_contract.go
Created September 16, 2018 14:48 — forked from dominiek/ethereum_ecrecover_native_contract.go
ethereum_ecrecover_native_contract.go
// ECRECOVER implemented as a native contract.
type ecrecover struct{}
func (c *ecrecover) RequiredGas(input []byte) uint64 {
return params.EcrecoverGas
}
func (c *ecrecover) Run(input []byte) ([]byte, error) {
const ecRecoverInputLength = 128
@qbig
qbig / go-concurrency-patterns.md
Created September 27, 2018 04:53 — forked from yosssi/go-concurrency-patterns.md
Go Concurrency Patterns

Go Concurrency Patterns

Generator: function that returns a channel

package main

import (
	"fmt"
	"math/rand"
@qbig
qbig / config.yml
Created November 25, 2020 16:02 — forked from asselstine/config.yml
Run Truffle Tests on CircleCI 2.0
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
#
version: 2
jobs:
build:
docker:
# specify the version you desire here