Skip to content

Instantly share code, notes, and snippets.

Avatar

Manuel Araoz maraoz

View GitHub Profile
View ProofOfExistence_1.sol
// Proof of Existence contract, version 1
contract ProofOfExistence {
// state
bytes32 proof;
// constructor
function ProofOfExistence() {
}
View ethereum-guide.sh
# First, let's install truffle
$ sudo npm install -g truffle
# let's setup our project
$ mkdir solidity-experiments
$ cd solidity-experiments/
$ truffle init
$ ls
app contracts migrations test truffle.js
View new-account.geth
> personal.newAccount()
Passphrase:
Repeat passphrase:
"0xa88614166227d83c93f4c50be37150b9500d51fc"
View geth-testnet.sh
geth --testnet --rpc console 2>> geth.log
View gist:980729fe357485e373abbd4f05365834
var clientID = "oC8AfNfY3JTOV5PIFkqKbIgLgzFqc0By";
var domain = "bitcorps.auth0.com";
var full = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: '');
var dict = {
title: "BitCorps",
}
var options = {
"responseType":"token",
@maraoz
maraoz / gist:388eddec39d60c6d52d4
Created Feb 20, 2016
Imagenet output tensor index to label mapping
View gist:388eddec39d60c6d52d4
{
0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
@maraoz
maraoz / paychan.bit
Last active Aug 29, 2015
Bitcoin Payment Channel Script template
View paychan.bit
OP_IF
<expiry time> OP_CHECKLOCKTIMEVERIFY OP_DROP
<consumer pubkey> OP_CHECKSIG
OP_ELSE
OP_0 2 <consumer pubkey> <provider pubkey> 2 OP_CHECKMULTISIG
OP_END
@maraoz
maraoz / p2pkh.bit
Created Jul 20, 2015
Bitcoin Pay-to-PubkeyHash Transaction Script template
View p2pkh.bit
OP_DUP
OP_HASH160
<hash(publicKey)>
OP_EQUALVERIFY OP_CHECKSIG
You can’t perform that action at this time.