Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
import operator | |
import numpy | |
from math import sqrt | |
from deap import gp | |
# Our dataset is 100 random arrays of 0s and 1s | |
# and the function we are trying to find is simply |
import random, time, operator, math | |
from deap import base | |
from deap import creator | |
from deap import tools | |
from deap import gp | |
import cloud | |
import jsonrpclib |
""" | |
A deep neural network with or w/o dropout in one file. | |
""" | |
import numpy, theano, sys, math | |
from theano import tensor as T | |
from theano import shared | |
from theano.tensor.shared_randomstreams import RandomStreams | |
from collections import OrderedDict |
require(quantmod) | |
require(SIT) | |
dvi.indicator = function(prices) { | |
dvi = TTR:::DVI(prices)[,3] | |
indicator.long = ifelse(dvi <= 0.5, 1, 0) | |
indicator.short = ifelse(dvi > 0.5, -1, 0) | |
indicator = reclass(cbind(indicator.short + indicator.long), prices) |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
#################################################################################################################### | |
# Name : DATACLEANING S&P | |
# Author : Nikos Rachmanis | |
# Version : 1.0 | |
# Copyright : Your copyright notice | |
# Description : Data cleaning and merging | |
#################################################################################################################### | |
#################################################################################################################### | |
### Libraries + Settings ########################################################################################### |
var request = require('request'); | |
var sqlite3 = require('sqlite3').verbose(); | |
var db = new sqlite3.Database('fx.db'); | |
var heartbeat = 10000; | |
function parse_quote (str) { | |
var quote = []; | |
var lines = str.split('\n'); | |
for (var line_idx = 0; line_idx < lines.length; line_idx++) { | |
var line = lines[line_idx]; |
A running example of the code from:
Small refactorings made to original code:
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |