Skip to content

Instantly share code, notes, and snippets.

@thelmuth
thelmuth / GitHub-help.md
Last active September 28, 2015 01:17
Help file for contributors to any CI Lab project on GitHub.

General Info

  • The master branch is the stable main branch. No one should ever need to edit the master branch, and even if they do, they should definitely never push it to the Github repository. All changes to master will come as merges from other branches, which Lee will be responsible for merging with master.

  • Branches are easy and cheap to create, and should be used extensively. If you ever want to "try something out", make sure you branch from master (or some other branch) first. If you want to add a feature to a project permanently, create a branch for it while you test it, and once the bugs are ironed out, then it can be merged to master (by Lee or whoever is managing the project). If you find a bug in master, create a branch to fix it. If you want to add some code for an experiment for a paper, create a branch for it. I cannot emphasize enough: things will be easier for all of us if we always create branches for any changes to master that we need.

  • Whenever Lee updates

@lspector
lspector / evolvefn.clj
Created October 19, 2011 02:14
Clojure code for a simple genetic programming system, for demonstration purposes.
;; Lee Spector (lspector@hampshire.edu) 20111018 - 20111113
;; 20111113 update: handles functions of different arities
(ns evolvefn
(:require [clojure.zip :as zip]))
;; This code defines and runs a genetic programming system on the problem
;; of finding a function that fits a particular set of [x y] pairs.