Skip to content

Instantly share code, notes, and snippets.

View davidtweaver's full-sized avatar

David Weaver davidtweaver

View GitHub Profile
@PyPool
PyPool / (Week 1) love.py
Last active December 16, 2015 08:39
Three short scripts produced by the attendees of #PyPool (Python meet-up in Liverpool, UK). These three pieces of code were used as a guide / introduction to Python for those new to the programming language to assist them in grasping the foundations of the language and syntax
#!/usr/bin/env python
# By David, Jonathan, David, and Zarino
import sys
names = sys.argv
score = 0.0
p1 = names[1].lower()
@nossidge
nossidge / Snowball
Last active December 15, 2015 14:09
C++ Generate valid snowball poems, using input file of example text and Markov chains to help make it grammatically correct.
/*
~~ Snowball Poem ~~
Snowball (also called a Chaterism): A poem in which each line is a single word,
and each successive word is one letter longer. One of the constrained writing
techniques invented by the Oulipo (Workshop of Potential Literature).
~~ Program Description ~~
This program takes input from the file "input-raw.txt". It examines the file for