Skip to content

Instantly share code, notes, and snippets.

View juliamae's full-sized avatar

Julia Valentine juliamae

View GitHub Profile
@coliver
coliver / jameswhitemanifesto.txt
Created May 22, 2014 14:58
James White Manifesto
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.
@juliamae
juliamae / gist:661838
Created November 3, 2010 22:35 — forked from jcbozonier/gist:131289
markov chains in python
from __future__ import with_statement
import random
def create_chain(file_paths):
word_counter = {}
previous_word = ""
for path in file_paths:
with open(path) as file:
for line in file:
words = line.split(" ")