Skip to content

Instantly share code, notes, and snippets.

View jmank88's full-sized avatar

Jordan Krage jmank88

View GitHub Profile
pragma solidity 0.5.0;
contract ERC20 {
function transferFrom(address _from, address to, uint _value) public returns (bool);
function approve(address _spender, uint _value) public returns (bool);
function allowance(address _owner, address _spender) public view returns (uint);
event Approval(address indexed _owner, address indexed _spender, uint _value);
}
contract ERC223ReceivingContract {
function tokenFallback(address _from, uint _value, bytes memory _data)public;
}
@jmank88
jmank88 / staticcheck_regression?.txt
Created September 7, 2017 19:03
staticcheck ./internal/gps
~/go/src/github.com/golang/dep$ staticcheck ./internal/gps
/home/jordan/go/src/github.com/golang/dep/internal/gps/constraints.go:75:10: cannot use NewBranch(m.Value) (value of type UnpairedVersion) as Constraint value in return statement: missing method ImpliedCaretString
/home/jordan/go/src/github.com/golang/dep/internal/gps/constraints.go:77:10: cannot use newDefaultBranch(m.Value) (value of type UnpairedVersion) as Constraint value in return statement: missing method ImpliedCaretString
/home/jordan/go/src/github.com/golang/dep/internal/gps/lock.go:145:10: cannot use lp.v (variable of type UnpairedVersion) as Version value in return statement: missing method ImpliedCaretString
/home/jordan/go/src/github.com/golang/dep/internal/gps/lock.go:152:9: cannot use lp.v.Pair(lp.r) (value of type PairedVersion) as Version value in return statement: missing method ImpliedCaretString
/home/jordan/go/src/github.com/golang/dep/internal/gps/lock.go:182:14: invalid operation: lp.v (variable of type UnpairedVersion) has no
@jmank88
jmank88 / dep_init_-v.txt
Created April 21, 2017 14:48
panic: canary - *should* be impossible to have a pkg-only selection here
dep: Finding dependencies for "github.com/iron-io/functions"...
dep: Found 77 dependencies.
dep: Building dependency graph...
dep: Found import of "github.com/Sirupsen/logrus", analyzing...
dep: Found import of "github.com/aws/aws-sdk-go/aws", analyzing...
dep: Found import of "github.com/boltdb/bolt", analyzing...
dep: Found import of "github.com/ccirello/supervisor", analyzing...
dep: Found import of "github.com/dghubble/go-twitter/twitter", analyzing...
dep: Could not determine version for "github.com/dghubble/go-twitter", omitting from generated manifest
dep: Found import of "github.com/dghubble/oauth1", analyzing...
@jmank88
jmank88 / dep_panic
Created April 21, 2017 11:50
dep - panic: canary - *should* be impossible to have a pkg-only selection here
Cached github.com/boltdb/bolt
Cached github.com/Sirupsen/logrus
Cached github.com/dghubble/oauth1
Cached github.com/aws/aws-sdk-go
Cached github.com/giantswarm/semver-bump
Cached github.com/dghubble/go-twitter
Cached github.com/dgrijalva/jwt-go
Cached github.com/ccirello/supervisor
Cached github.com/go-openapi/errors
Cached github.com/fsouza/go-dockerclient
@jmank88
jmank88 / vendor.go
Last active August 2, 2016 19:50
lock file in go source
//go:vendor github.com/path/to/c 672fe547df4e49efc6db67a74391368bcb149b37
//go:vendor github.com/path/to/c 672fe547df4e49efc6db67a74391368bcb149b37
//go:vendor github.com/path/to/b -t 2.0.1
//go:vendor github.com/path/to/b -t 2.0.1
//go:vendor github.com/path/to/c 672fe547df4e49efc6db67a74391368bcb149b37
//go:vendor github.com/path/to/b -t 2.0.1
//go:vendor github.com/path/to/c 672fe547df4e49efc6db67a74391368bcb149b37
package pkg

Keybase proof

I hereby claim:

  • I am jmank88 on github.
  • I am jmank88 (https://keybase.io/jmank88) on keybase.
  • I have a public key whose fingerprint is 3691 7793 0806 99EC F2E8 7BC4 DBA5 C9A6 C99B 5081

To claim this, I am signing this object:

package bench
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"os"
"strconv"
package bench
import (
"bufio"
"errors"
"fmt"
"os"
"strings"
"unicode/utf8"
)
package bench
import (
"bufio"
"errors"
"fmt"
"io"
"os"
"strings"
)