Skip to content

Instantly share code, notes, and snippets.

Avatar

Douglas Drouillard drouillard

View GitHub Profile
View dca.py
# THIS IS PROVIDED WITHOUT ANY WARRANTY EXPLICIT OR IMPLICIT
# THE AUTHORS ARE NOT RESPONSIBLE FOR ANY SECURITY ISSUES OR FINANCIAL LOSSES
# Installing requirements: pip install python-bittrex
# Then, change the next two lines with your Bittrex API info (with limit order & view info access)
BITTREX_PUBLIC = "INSERT BITTREX PUBLIC HERE"
BITTREX_SECRET = "INSERT BITTREX SECRET HERE"
# Finally, see the bottom of this file
# (do not edit below this point)
@drouillard
drouillard / translate.lhs
Created Aug 24, 2017 — forked from shmookey/translate.lhs
off-chain storage for ethereum smart contracts
View translate.lhs
External storage on the EVM: a static recompilation approach 7 May 2017
Luke Williams <shmookey@shmookey.net> Rev. 3
This document describes a way of converting ordinary compiled EVM contracts to
a form suitable for use with an off-chain storage backend, such as the system
described by Smolenski for storing contract state on IPFS. This technique is
completely invisible to the contract developer and requires no modification to
contract logic. It is also generic to any EVM contract, regardless of the high
level language it was written in, and compatible with the public blockchain.
@drouillard
drouillard / translate.lhs
Created Aug 24, 2017 — forked from shmookey/translate.lhs
off-chain storage for ethereum smart contracts
View translate.lhs
External storage on the EVM: a static recompilation approach 7 May 2017
Luke Williams <shmookey@shmookey.net> Rev. 3
This document describes a way of converting ordinary compiled EVM contracts to
a form suitable for use with an off-chain storage backend, such as the system
described by Smolenski for storing contract state on IPFS. This technique is
completely invisible to the contract developer and requires no modification to
contract logic. It is also generic to any EVM contract, regardless of the high
level language it was written in, and compatible with the public blockchain.
@drouillard
drouillard / commands.sh
Last active Apr 6, 2017
Ethereum Genesis config with homestead block
View commands.sh
eth_dir=/<your dir>
data_dir=$eth_dir/chain
config_dir=$eth_dir/config
# Note: If on OSX you may need quotes are parameters.
# Init chain
geth --datadir $data_dir init $config_dir/genesis.json
# Access console
@drouillard
drouillard / options.txt
Created Jul 29, 2016
Atom Editor config options
View options.txt
Atom Setup
Packages
* React
* linter
* linter-eslint
* tabs-to-spaces
Shortcuts
@drouillard
drouillard / cmd.sh
Created Jan 27, 2016
OS X / MySql 5.7.9 Change Root Password
View cmd.sh
# proper command for changing root password on local box when you DO have access to the MySQL server already.
# Insecure (meant for dev box)
mysqladmin -u root -p password 'test'
@drouillard
drouillard / ReduxMicroBoilerplate.js
Created Dec 21, 2015 — forked from gaearon/ReduxMicroBoilerplate.js
Super minimal React + Redux app
View ReduxMicroBoilerplate.js
import React, { Component } from 'react';
import { createStore, combineReducers, applyMiddleware, bindActionCreators } from 'redux';
import { provide, connect } from 'react-redux';
import thunk from 'redux-thunk';
const AVAILABLE_SUBREDDITS = ['apple', 'pics'];
// ------------
// reducers
// ------------
View .bash_profile
alias gs='git status'
alias gd='git diff'
alias ga='git add'
alias gn="git ls-files -m | head -1"
alias gnd='gn | xargs git diff'
alias gna='gn | xargs git add; gs; gnd'
alias gnp='git push origin HEAD'
# dangerous so commented out by default
#alias gnc='gn | xargs git checkout'
@drouillard
drouillard / index.js
Last active Sep 6, 2015
require-directory with rename of dashes/hypens to camelCase
View index.js
'use strict';
var requireDirectory = require('require-directory');
var renamer = function (name) {
return name.replace(/-([a-z])/g, function (m, c) {
return c.toUpperCase();
});
};
module.exports = requireDirectory(module, {rename: renamer});