This file contains hidden or 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 matplotlib.pyplot as plt | |
def import_text(filename, separator): | |
for line in csv.reader(open(filename), delimiter=separator, skipinitialspace=True): | |
if line: | |
yield line | |
results = [] | |
t = [] | |
x = [] |
This file contains hidden or 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
#!/usr/bin/python | |
#http://cheezburger.com/4925161216 | |
parts = { | |
'a': 'Hip', 'b': 'Dip', 'c': 'Squoo', 'd': 'Bada', 'e': 'Meep', | |
'f': 'Bloo', 'g': 'Caw', 'h': 'Squee', 'i': 'Woobly', 'j': 'Badum', | |
'k': 'Loo', 'l': 'Derp', 'm': 'Nerp', 'n': 'Spee', 'o': 'Papa', | |
'p': 'Moom', 'q': 'Dub', 'r': 'Pa', 's': 'Naw', 't': 'Ka', | |
'u': 'Mim', 'v': 'Zap', 'w': 'Nup', 'x': 'Na', 'y': 'Yee', | |
'z': 'Zoop', ' ': ' ' | |
} |
This file contains hidden or 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
#!/bin/sh | |
echo "" | |
echo "Reuben, Reuben, I've been thinkin," | |
echo "what a fine world it would be," | |
echo "if all the $1 were just transported" | |
echo "all across the northern sea." | |
echo "" |
This file contains hidden or 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
# Back-Propagation Neural Networks | |
# | |
# Written in Python. See http://www.python.org/ | |
# Placed in the public domain. | |
# Neil Schemenauer <[email protected]> | |
# | |
# Changes: | |
# 2009-01-30 Fix dsigmoid() to use correct derivative rather than an | |
# approximation. Suggested by Andrew Lionel Blais. | |
NewerOlder