I hereby claim:
- I am shanev on github.
- I am blockshane (https://keybase.io/blockshane) on keybase.
- I have a public key ASB5EbwxdHbrGJd_mvlzBuhRu-gcJIJ5StKkms19G6ggiwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
[[constraint]] | |
name = "github.com/cosmos/cosmos-sdk" | |
version = "=0.22.0" | |
[[constraint]] | |
name = "github.com/stretchr/testify" | |
version = "=1.2.1" | |
[[constraint]] | |
name = "github.com/spf13/cobra" |
pragma solidity ^0.4.24; | |
import "./ERC20.sol"; | |
/** | |
* @title One-way Fungible Token | |
*/ | |
contract ERC20Unidirectional is ERC20 { | |
address private _parent; |
package types | |
import ( | |
"path" | |
"reflect" | |
"regexp" | |
"strings" | |
sdk "github.com/cosmos/cosmos-sdk/types" | |
) |
#!/bin/sh | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
FILE="$DIR/../Design/1f64a.svg" | |
OUTPUT_LOCATION="$DIR/../iTunes" | |
# convert svg asset to png | |
convert -density 2000 -resize 1024x1024 -background none $FILE appicon-foreground.png |
#!/bin/sh | |
# exit if there are any errors | |
set -e | |
# pretty output | |
info() { | |
local green="\033[1;32m" | |
local normal="\033[0m" | |
echo "[${green}INFO${normal}] $1" |
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
/* Moves tab close button to left of tab */ | |
@-moz-document url(chrome://browser/content/browser.xul) { | |
#TabsToolbar #tabbrowser-tabs .tabbrowser-tab:not([pinned]) .tab-close-button { | |
-moz-box-ordinal-group: 0 !important; | |
-moz-margin-start: -4px !important; | |
-moz-margin-end: 4px !important; | |
} | |
} |
// Client is a Postgres client. | |
// It wraps a pool of Postgres DB connections. | |
type Client struct { | |
*pg.DB | |
} | |
// NewDBClient creates a Postgres client | |
func NewDBClient(addr string, user string, password string, database string) *Client { | |
db := pg.Connect(&pg.Options{ | |
Addr: addr, |
// Datastore defines all operations on the DB | |
// This interface can be mocked out for tests, etc. | |
type Datastore interface { | |
Mutations | |
Queries | |
} |
// RegisterModel creates a table for a type. | |
// A table is automatically created based on the passed in struct fields. | |
func (c *Client) RegisterModel(model interface{}) error { | |
return c.CreateTable(model, &orm.CreateTableOptions{ | |
Temp: false, | |
IfNotExists: true, | |
}) | |
} |