Skip to content

Instantly share code, notes, and snippets.

Avatar

Esteban Ordano eordano

View GitHub Profile
@eordano
eordano / nft-issuance.md
Last active Apr 8, 2020
Ideas for NFT Governance
View nft-issuance.md

Note (esteban): This is a brain dump of where are we kinda standing right now regarding governance of items. Open to hear thoughts and go back on concepts here, mostly our biggest concern is how would this work over time; the idea that an NFT might become "unwearable" in the future is pretty awful; I personally prefer stating this and maybe afterwards in the future it doesn't happen (maybe there's some tacit agreement in general that that is something reserved for very special cases?). Anyways, and without further adue, we need your feedback and are super open to iterate on these ideas!

Voting a new Wearable Collection

https://www.lucidchart.com/invitations/accept/84773c54-41c2-4f10-98db-6499096b70c3 https://www.lucidchart.com/invitations/accept/84773c54-41c2-4f10-98db-6499096b70c3

Proposed schematics for voting: Designer's Journey

View keybase.md

Keybase proof

I hereby claim:

  • I am eordano on github.
  • I am eordano (https://keybase.io/eordano) on keybase.
  • I have a public key ASC5_6re8JzaOR4fNYqY4-PlFmR36zh5pJ2Lzyddz_yVHgo

To claim this, I am signing this object:

View TokenVesting.sol
pragma solidity ^0.4.15;
import 'zeppelin-solidity/contracts/tokens/ERC20Basic.sol';
import 'zeppelin-solidity/contracts/ownership/Ownable.sol';
import 'zeppelin-solidity/contracts/math/Math.sol';
import 'zeppelin-solidity/contracts/math/SafeMath.sol';
/**
* @title TokenVesting
* @dev A token holder contract that can release its token balance gradually like a
View BuyToken.sol
pragma solidity ^0.4.11;
contract Token {
function transfer(address _to, uint256 _value);
function balanceOf(address _owner) constant returns (uint256 balance);
}
contract BuyToken {
// Ether holder, the Party that has Ether and will receive Tokens
View bitcore-ext.js
const bitcore = require('bitcore')
const semiHash = hash => hash.substr(0, 4) + '...' + hash.substr(60, 4)
bitcore.util.semiHash = semiHash
const visualCoinbaseScript = function(coinbase, opts) {
return `\t${coinbase._scriptBuffer.toString('hex')}
\t${coinbase._scriptBuffer.toString()}`
View gist:e8e640dd79dd9106321a
Verifying I am +eordano on my passcard. https://onename.com/eordano
@eordano
eordano / 1.create.js
Created Dec 31, 2014
Bitcore Stealth testing
View 1.create.js
var Stealth = require('../');
var bitcore = require('bitcore') ;
var spends = [
new bitcore.PrivateKey(),
new bitcore.PrivateKey(),
new bitcore.PrivateKey()
];
var scanKey = new bitcore.PrivateKey();
@eordano
eordano / idea.js
Last active Aug 29, 2015
Defining read only values in JS
View idea.js
var defineReadOnlyProperty = function(object, propertyName, getter) {
Object.defineProperty(object, propertyName, {
getter: getter,
setter: function () { throw new Error('Invalid access'); }
});
};
function MyClass() {
var props = {
View gist:a171f8f935182c0bc7a3
### Keybase proof
I hereby claim:
* I am eordano on github.
* I am eordano (https://keybase.io/eordano) on keybase.
* I have a public key whose fingerprint is 6C85 6986 1B12 A194 756E 7CF1 91BF 97C8 9E0E EF3B
To claim this, I am signing this object:
@eordano
eordano / gist:7752352
Created Dec 2, 2013
Gekko candle data for backtesting - source from bitstamp, bitcoinwisdom. Parameter "frame" is in minutes
View gist:7752352
import argparse
import json
import requests
import random
parser = argparse.ArgumentParser()
parser.add_argument("frame", type=int)
args = parser.parse_args()
frame = 60 * args.frame
You can’t perform that action at this time.