- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
from collections import OrderedDict | |
from itertools import count | |
# precision of output points | |
decimals = 2 | |
svg = '''M0,0 L66,0 L66,140 L0,140 L0,0 Z M17.5356193,9.91374504 L7.89629934,9.91374504 L7.89629934,34.6390567 L13.9842872,34.6390567 L13.9842872,27.741635 L17.6136633,27.741635 C21.6461094,27.741635 24.6445573,27.0341777 26.6090071,25.619263 C28.5734569,24.2043483 29.555612,21.9699927 29.5554723,18.9161962 C29.5554723,15.8625389 28.5993435,13.5986987 26.687086,12.1246754 C24.7748285,10.6511862 21.7243396,9.91420937 17.5356193,9.91374504 Z M51.2530562,20.2426569 L40.4040722,20.2426569 L40.4040722,9.91374504 L34.3159446,9.91374504 L34.3159446,34.6392308 L40.4040722,34.6390567 L40.4040722,24.9118057 L51.2530562,24.9118057 L51.2530562,34.6392308 L57.3411838,34.6392308 L57.3411838,9.91374504 L51.2530562,9.91391916 L51.2530562,20.2426569 Z''' | |
def string_to_point_tuple(s): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": 0, | |
"hash": "853644d7-12d3-4378-b329-aed939ff5a48", | |
"title": "ea adipisicing quis veniam eiusmod fugiat", | |
"description": "Culpa ullamco laborum deserunt reprehenderit sit aute amet. Esse nisi minim dolore laboris occaecat adipisicing anim adipisicing velit id aliquip est commodo. Eu excepteur amet consequat sint. Ullamco reprehenderit irure culpa cupidatat minim excepteur fugiat occaecat ex esse consequat.\r\n" | |
}, | |
{ | |
"id": 1, | |
"hash": "967919fc-735f-4851-a505-4c2b817e7582", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Form extends Component { | |
state = {}; | |
renderInput = (name, type, value='') => | |
<input onChange={({target}) => this.setState({[name]: target.value})} name={name} type={type} value={this.state[name] || value}/>; | |
handleSubmit = (evt) => { | |
evt.preventDefault(); | |
send('/form', this.state); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Web3: any = require('web3'); // tslint:disable-line:variable-name | |
const bip39: any = require('bip39'); | |
const hdkey: any = require('ethereumjs-wallet/hdkey'); | |
const web3: any = new Web3(); | |
export class Accounts { | |
private seed: string; | |
constructor(seed: string) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const Tx = require('ethereumjs-tx') | |
const ledger = require('ledgerco') | |
const Web3 = require('web3') | |
const rlp = require('rlp'); | |
const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8585")) | |
const metacoinJSON = require('./build/contracts/MetaCoin.json') | |
const bytecode = metacoinJSON.unlinked_binary | |
const ownerAddress = fs.readFileSync('./owner.addr', 'utf8').toString() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//const argv = require('minimist')(process.argv.slice(2)); | |
const Web3 = require("web3") | |
let web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")) | |
console.log(web3) | |
let bip39 = require("bip39") | |
let hdkey = require('ethereumjs-wallet/hdkey') | |
let mnemonic = "weather cancel symptom owner lumber bitter bread butter dice trial shrug glance" | |
let hdwallet = hdkey.fromMasterSeed(bip39.mnemonicToSeed(mnemonic)) | |
// Set to m/44'/60'/0' for ledger nano s hardware wallet compatibilty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x5432a7a0d8b228166f41f305942ffbfed97bb2d8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x34e8D99893CcA9a593D905fb9aB07E1E20C0157D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x1313734d2d6625173278978ddaa7b63400462745 |
NewerOlder