- 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 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
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 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
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 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
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 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
# 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 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 json | |
import re | |
import urllib | |
import urllib2 | |
from time import sleep | |
comments = 0 | |
missing = [] | |
csv = open('super-bowl-comments.csv', 'w') |
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
Generation 0: Parents 0.000% and 0% ethnic had a child 0.000% ethnic | |
Generation 1: Parents 0.000% and 100% ethnic had a child 50.000% ethnic | |
Generation 2: Parents 50.000% and 0% ethnic had a child 25.000% ethnic | |
Generation 3: Parents 25.000% and 100% ethnic had a child 62.500% ethnic | |
Generation 4: Parents 62.500% and 0% ethnic had a child 31.250% ethnic | |
Generation 5: Parents 31.250% and 100% ethnic had a child 65.625% ethnic | |
Generation 6: Parents 65.625% and 0% ethnic had a child 32.812% ethnic | |
Generation 7: Parents 32.812% and 100% ethnic had a child 66.406% ethnic | |
Generation 8: Parents 66.406% and 0% ethnic had a child 33.203% ethnic | |
Generation 9: Parents 33.203% and 100% ethnic had a child 66.602% ethnic |
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
#include <stdio.h> | |
int main() { | |
printf("1111111111111111 = %.0f\n", 1111111111111111.0); | |
printf("11111111111111111 = %.0f\n", 11111111111111111.0); | |
printf("111111111111111111 = %.0f\n", 111111111111111111.0); | |
printf("1111111111111111111 = %.0f\n", 1111111111111111111.0); | |
printf("11111111111111111111 = %.0f\n", 11111111111111111111.0); | |
printf("111111111111111111111 = %.0f\n", 111111111111111111111.0); | |
return 0; |
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
Current ballot counts: <http://mlb.mlb.com/news/article.jsp?ymd=20130603&content_id=49475890> | |
Current batting WAR: <http://www.baseball-reference.com/leagues/AL/2013-value-batting.shtml#players_value_batting::15> | |
Current pitching WAR: <http://www.baseball-reference.com/leagues/AL/2013-value-pitching.shtml#players_value_pitching::18> | |
POS NAME CURRENT PLACE IN VOTING | |
1B: Chris Davis 1 | |
2B: Dustin Pedroia 3 | |
SS: Jhonny Peralta 3 | |
3B: Manny Machado 2 | |
OF: Coco Crisp 13 |
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
"""Convert decimal numbers to pinary (base pi). | |
Fractional and even irrational bases are possible, but aren't really useful for | |
anything. Base pi has four digits: 0, 1, 2, and 3. What's interesting is that | |
there's some "space" between the highest digit and the base, which means that | |
there are numbers with multiple valid representations. You'll notice: | |
decimal 7.000000 = pinary 20.2021120021 | |
decimal 8.000000 = pinary 21.2021120021 | |
decimal 9.000000 = pinary 22.2021120021 |