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
pragma solidity ^0.4.11; | |
contract Faucet { | |
address issuer; | |
mapping (address => uint256) lastDraw; | |
uint payout; | |
uint period; | |
function Faucet(uint _payout, uint _period) { |
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
### Keybase proof | |
I hereby claim: | |
* I am StuartFarmer on github. | |
* I am stustu (https://keybase.io/stustu) on keybase. | |
* I have a public key whose fingerprint is D1A9 4323 6469 DA27 A7C7 9266 DBB6 67B1 7E81 4CF8 | |
To claim this, I am signing this object: |
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
//+------------------------------------------------------------------+ | |
//| MA_In_Color_wAppliedPrice.mq4 | | |
//| Copyright © 2004, MetaQuotes Software Corp. | | |
//| Modified from LSMA_In_Color to use any MA by Robert Hill | | |
//| Added use of Applied Price by Robert Hill | | |
//+------------------------------------------------------------------+ | |
#property copyright "Copyright © 2006, FX Sniper and Robert Hill" | |
#property link "http://www.metaquotes.net/" | |
//---- indicator settings |
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 numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
import csv | |
import talib | |
underlying_data = [] | |
with open('./3m_data.csv') as f: | |
reader = csv.reader(f) |
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 pickle | |
from music21 import * | |
from sklearn import preprocessing | |
import numpy as np | |
def encode_from_paths(paths): | |
songbook = [path for path in paths] | |
notes = [] | |
for song in songbook: | |
song = converter.parse(song) |
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
from music21 import * | |
import numpy as np | |
from sklearn import preprocessing | |
import pickle | |
from keras.layers import Input, Dense, LSTM, merge | |
from keras.models import Model, load_model | |
from keras.optimizers import SGD |
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 csv | |
import random | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import math | |
import os | |
os.environ["THEANO_FLAGS"] = "mode=FAST_RUN,device=gpu,floatX=float32,allow_gc=False" |
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
#--- parameters for the XOR-2 experiment ---# | |
# The `Types` section specifies which classes should be used for various | |
# tasks in the NEAT algorithm. If you use a non-default class here, you | |
# must register it with your Config instance before loading the config file. | |
[Types] | |
stagnation_type = DefaultStagnation | |
reproduction_type = DefaultReproduction | |
[phenotype] |
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
from __future__ import print_function | |
import gym | |
import numpy as np | |
import itertools | |
import os | |
from neat import nn, population, statistics | |
# another great example of how crazy effective NEAT can be even when it knows literally nothing about what's going on in the environment. |
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
# I'll refactor this later, but it's almost midnight and I just wanted to demonstrate how sick NEAT is at solving problems without defining any direction for the algoritm | |
from __future__ import print_function | |
import gym | |
import numpy as np | |
import itertools | |
import os | |
from neat import nn, population, statistics |