- Aragorn
- [... 15 previous Chieftains of the Dúnedain ...]
- Arvedui, last King of Arthedain
- [... 14 previous Kings of Arthedain ...]
- Eärendur, last King of Arnor
- [... 7 previous Kings of Arnor ...]
- Isildur, King of Arnor
- Elendil, King of Arnor and last Lord of Andúnië
- Amandil
- [... 16 previous Lords of Andúnië ...]
This file contains 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 json | |
import re | |
import urllib | |
import urllib2 | |
from time import sleep | |
comments = 0 | |
missing = [] | |
csv = open('super-bowl-comments.csv', 'w') |
This file contains 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
# Run against *.EV? in a file from <http://www.retrosheet.org/game.htm> | |
BEGIN { | |
FS="," | |
} | |
$1 == "id" { | |
if (awayisperfect) { print "perfect" } | |
if (homeisperfect) { print "perfect" } | |
awayisperfect = 1 |
This file contains 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
16.2 Defensive Pass Interference | |
15.0 Roughing the Kicker | |
15.0 Interference with Opportunity to Catch | |
15.0 Illegal Peelback | |
15.0 Illegal Cut | |
15.0 Fair Catch Interference | |
15.0 Face Mask | |
15.0 Disqualification | |
15.0 Clipping | |
14.2 Personal Foul |
This file contains 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
Data from http://www.prosportstransactions.com/football/DraftTrades/Years/ | |
2000 (#16): Sent to Jets as compensation for his own hiring | |
2001 (#6): Drafted Richard Seymour | |
2002 (#32): Traded up to #21, drafted Dan Graham | |
2003 (#14): Acquired via trade for Drew Bledsoe, traded up to #13, drafted Ty Warren | |
2003 (#19): Traded down to 2nd round plus 2004 1st round | |
2004 (#21): Acquired via above trade, drafted Vince Wilfork | |
2004 (#32): Drafted Ben Watson | |
2005 (#32): Drafted Logan Mankins |
This file contains 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
distance_cache = {} | |
gcd_cache = {} | |
def DelacorteInit(): | |
# TODO: This half of the initialization could be done faster. | |
for row1 in range(28): | |
for col1 in range(28): | |
for row2 in range(28): | |
row_distance = (row1 - row2) ** 2 | |
for col2 in range(28): | |
distance_cache[row1, col1, row2, col2] = ( |
This file contains 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
# Results are in: https://docs.google.com/spreadsheets/d/1ucx9dgnYq83QDZv0nR1Ts1qXMQplqMRyiTlkJgZUQoU/edit?usp=sharing | |
# | |
# awk -f nfl-pre-sos-vs-actual.awk nfl-all-games.csv | |
BEGIN { | |
FS="," | |
print "Season,Team,Actual SOS,Predicted SOS" | |
} | |
/^Season/ { next } |
This file contains 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
Result result; | |
if (!Something(&result)) { | |
HandleError(); | |
} |
This file contains 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
# We own a set of alphabet blocks. There are 24 of them: one letter on each | |
# (with drawings of things that start with that letter), and X, Y, and Z are all | |
# on one block. We took the letters for our daughters name (no repeats, phew!) | |
# and they sit on a shelf in her room. The rest are with her toys in the living | |
# room. | |
# | |
# Here's how I figured out the longest words I could spell with the remaining | |
# blocks (buchwald, plutarch, abruptly, upwardly, watchful, and wrathful). | |
cat $WORDFILE | # Replace with a word file on your machine, probably one in /usr/share/dict/ \ |
This file contains 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
<html><head> | |
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> | |
<title>A* demo</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script> | |
<script type="text/javascript"> | |
var size=81, fielddom, g, h; | |
var zeroes, walls, open, clos, camefrom, lastwalls, lastopen, lastclos; | |
var curx=Math.floor(size/2), cury=3; | |
var active = 1; |
OlderNewer