Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Origins of the KIRK HINRICH stack used to build http://basketball-gm.com/
scores = {}
words = {}
with open('letters.csv') as f:
for line in f:
letter, word, score = line.rstrip().split(',')
scores[letter] = int(score)
words[letter] = word
names = []
with open('names.csv') as f:
for line in f:
if ',' in line:
n1, n2 = line.rstrip().split(',')
names.append(n1)
names.append(n2)
else:
name = line.rstrip() # Fucking Nene
names.append(name)
name_scores = []
for name in names:
letters = list(name)
length = len(letters)
score = 0
# Average score per letter
for letter in letters:
if letter in scores:
score += scores[letter]
else:
score -= 5
score /= 1.0 * length
# Penalize short names
if length < 5:
score -= 5 - length
name_scores.append((name, score))
name_scores.sort(key=lambda row: -row[1])
for name_score in name_scores:
print name_score[0], '-', name_score[1]
for letter in list(name_score[0]):
if letter in words:
print words[letter]
else:
print letter
print ''
A Apache 2
B Bootstrap 8
C Chai 0
D Davis.js 4
F Faces.js 2
H HTML5 10
I IndexedDB 10
J JavaScript 10
K Knockout 8
L Linux 2
M Mocha 0
N NoSQL 6
R Require.js 8
U Underscore.js 2
W Webfaction 0
We can make this file beautiful and searchable if this error is corrected: It looks like row 299 should actually have 2 columns, instead of 1. in line 298.
ACY,QUINCY
ADAMS,JORDAN
ADAMS,STEVEN
ADRIEN,JEFF
AFFLALO,ARRON
AJINCA,ALEXIS
ALDEMIR,FURKAN
ALDRICH,COLE
ALDRIDGE,LAMARCUS
ALLEN,LAVOY
ALLEN,TONY
AMINU,AL-FAROUQ
AMUNDSON,LOU
ANDERSEN,CHRIS
ANDERSON,ALAN
ANDERSON,KYLE
ANDERSON,RYAN
ANTETOKOUNMPO,GIANNIS
ANTHONY,CARMELO
ANTHONY,JOEL
ANTIC,PERO
ARIZA,TREVOR
ARTHUR,DARRELL
ASIK,OMER
AUGUSTIN,DJ
AYRES,JEFF
BABBITT,LUKE
BAIRSTOW,CAMERON
BARBOSA,LEANDRO
BAREA,JOSEJUAN
BARGNANI,ANDREA
BARNES,HARRISON
BARNES,MATT
BARTON,WILL
BASS,BRANDON
BATUM,NICOLAS
BAYLESS,JERRYD
BAYNES,ARON
BAZEMORE,KENT
BEAL,BRADLEY
BELINELLI,MARCO
BENNETT,ANTHONY
BEVERLEY,PATRICK
BIYOMBO,BISMACK
BLACK,TARIK
BLAIR,DEJUAN
BLAKE,STEVE
BLEDSOE,ERIC
BOGDANOVIC,BOJAN
BOGUT,ANDREW
BONNER,MATT
BOOKER,TREVOR
BOOZER,CARLOS
BOSH,CHRIS
BRADLEY,AVERY
BRAND,ELTON
BREWER,COREY
BROOKS,AARON
BROWN,MARKEL
BRYANT,KOBE
BUDINGER,CHASE
BULLOCK,REGGIE
BURKE,TREY
BURKS,ALEC
BUTLER,CARON
BUTLER,JIMMY
BUTLER,RASUAL
CABOCLO,BRUNO
CALATHES,NICK
CALDERON,JOSE
CALDWELL-POPE,KENTAVIOUS
CANAAN,ISAIAH
CAPELA,CLINT
CARROLL,DEMARRE
CARTER,VINCE
CARTER-WILLIAMS,MICHAEL
CASSPI,OMRI
CHALMERS,MARIO
CHANDLER,TYSON
CHANDLER,WILSON
CHRISTOPHER,PATRICK
CLARK,IAN
CLARKSON,JORDAN
CLAVER,VICTOR
COLE,NORRIS
COLLISON,DARREN
COLLISON,NICK
CONLEY,MIKE
COPELAND,CHRIS
COUSINS,DEMARCUS
COVINGTON,ROBERT
CRABBE,ALLEN
CRAWFORD,JAMAL
CROWDER,JAE
CUNNINGHAM,DANTE
CUNNINGHAM,JARED
CURRY,STEPHEN
DALEMBERT,SAMUEL
DANIELS,TROY
DATOME,GIGI
DAVIES,BRANDON
DAVIS,ANTHONY
DAVIS,ED
DAVIS,GLEN
DAWKINS,ANDRE
DAYE,AUSTIN
DEROZAN,DEMAR
DEDMON,DEWAYNE
DELLAVEDOVA,MATTHEW
DENG,LUOL
DIAW,BORIS
DIENG,GORGUI
DINWIDDIE,SPENCER
DORSEY,JOEY
DOUGLAS-ROBERTS,CHRIS
DRAGIC,GORAN
DRAGIC,ZORAN
DRUMMOND,ANDRE
DUDLEY,JARED
DUNCAN,TIM
DUNLEAVY,MIKE
DURANT,KEVIN
EARLY,CLEANTHONY
ELLINGTON,WAYNE
ELLIS,MONTA
EMBIID,JOEL
ENNIS,JAMES
ENNIS,TYLER
EVANS,JEREMY
EVANS,REGGIE
EVANS,TYREKE
EXUM,DANTE
EZELI,FESTUS
FARIED,KENNETH
FARMAR,JORDAN
FAVORS,DERRICK
FELTON,RAYMOND
FIELDS,LANDRY
FOURNIER,EVAN
FOYE,RANDY
FREDETTE,JIMMER
FREELAND,JOEL
FRYE,CHANNING
GALLINARI,DANILO
GARNETT,KEVIN
GASOL,MARC
GASOL,PAU
GAY,RUDY
GEE,ALONZO
GEORGE,PAUL
GIBSON,TAJ
GINOBILI,MANU
GOBERT,RUDY
GOODEN,DREW
GOODWIN,ARCHIE
GORDON,AARON
GORDON,BEN
GORDON,ERIC
GORTAT,MARCIN
GRANGER,DANNY
GRANT,JERAMI
GREEN,DANNY
GREEN,DRAYMOND
GREEN,ERICK
GREEN,GERALD
GREEN,JEFF
GREEN,WILLIE
GRIFFIN,BLAKE
HAIRSTON,PJ
HAMILTON,JUSTIN
HANSBROUGH,TYLER
HARDAWAYJR,TIM
HARDEN,JAMES
HARKLESS,MAURICE
HARRIS,DEVIN
HARRIS,GARY
HARRIS,JOE
HARRIS,TOBIAS
HASLEM,UDONIS
HAWES,SPENCER
HAYES,CHARLES
HAYWARD,GORDON
HAYWOOD,BRENDAN
HENDERSON,GERALD
HENRY,XAVIER
HENSON,JOHN
HIBBERT,ROY
HICKSON,JJ
HILL,GEORGE
HILL,JORDAN
HILL,SOLOMON
HINRICH,KIRK
HOLIDAY,JRUE
HOLIDAY,JUSTIN
HOLLINS,RYAN
HOOD,RODNEY
HORFORD,AL
HOWARD,DWIGHT
HUMMEL,ROBBIE
HUMPHRIES,KRIS
IBAKA,SERGE
IGUODALA,ANDRE
ILYASOVA,ERSAN
INGLES,JOE
INGLIS,DAMIEN
IRVING,KYRIE
JACK,JARRETT
JACKSON,REGGIE
JAMES,LEBRON
JEFFERSON,AL
JEFFERSON,CORY
JEFFERSON,RICHARD
JENKINS,JOHN
JENNINGS,BRANDON
JEREBKO,JONAS
JERRETT,GRANT
JOHNSON,AMIR
JOHNSON,JAMES
JOHNSON,JOE
JOHNSON,NICK
JOHNSON,WESLEY
JONES,JAMES
JONES,PERRY
JONES,TERRENCE
JORDAN,DEANDRE
JORDAN,JEROME
JOSEPH,CORY
KAMAN,CHRIS
KANTER,ENES
KARASEV,SERGEY
KELLY,RYAN
KIDD-GILCHRIST,MICHAEL
KIRILENKO,ANDREI
KIRK,ALEX
KNIGHT,BRANDON
KORVER,KYLE
KOUFOS,KOSTA
KUZMIC,OGNJEN
LAVINE,ZACH
LAMB,JEREMY
LANDRY,CARL
LARKIN,SHANE
LAWSON,TY
LEDO,RICKY
LEE,COURTNEY
LEE,DAVID
LEN,ALEX
LEONARD,KAWHI
LEONARD,MEYERS
LEUER,JON
LILLARD,DAMIAN
LIN,JEREMY
LIVINGSTON,SHAUN
LOPEZ,BROOK
LOPEZ,ROBIN
LOVE,KEVIN
LOWRY,KYLE
MACK,SHELVIN
MAHINMI,IAN
MARBLE,DEVYN
MARION,SHAWN
MARSHALL,KENDALL
MARTIN,CARTIER
MARTIN,KEVIN
MATTHEWS,WESLEY
MAXIELL,JASON
MAYO,OJ
MBAHAMOUTE,LUC
MCCALLUM,RAY
MCCOLLUM,CJ
MCDANIELS,KJ
MCDERMOTT,DOUG
MCGARY,MITCH
MCGEE,JAVALE
MCLEMORE,BEN
MCROBERTS,JOSH
MEEKS,JODIE
MIDDLETON,KHRIS
MILES,CJ
MILLER,ANDRE
MILLER,MIKE
MILLS,PATTY
MILLSAP,PAUL
MIROTIC,NIKOLA
MITCHELL,TONY
MOHAMMED,NAZR
MONROE,GREG
MOORE,E'TWAUN
MORELAND,ERIC
MORRIS,DARIUS
MORRIS,MARCUS
MORRIS,MARKIEFF
MORROW,ANTHONY
MOTIEJUNAS,DONATAS
MOZGOV,TIMOFEY
MUHAMMAD,SHABAZZ
MURRY,TOURE
MUSCALA,MIKE
NENE
NAPIER,SHABAZZ
NASH,STEVE
NEAL,GARY
NELSON,JAMEER
NICHOLSON,ANDREW
NOAH,JOAKIM
NOEL,NERLENS
NOGUEIRA,LUCAS
NOVAK,STEVE
NOWITZKI,DIRK
NURKIC,JUSUF
O'BRYANT,JOHNNY
O'QUINN,KYLE
OLADIPO,VICTOR
OLYNYK,KELLY
PACHULIA,ZAZA
PAPANIKOLAOU,KOSTAS
PARGO,JANNERO
PARKER,JABARI
PARKER,TONY
PARSONS,CHANDLER
PATTERSON,PATRICK
PAUL,CHRIS
PAYNE,ADREIAN
PAYTON,ELFRID
PEKOVIC,NIKOLA
PERKINS,KENDRICK
PIERCE,PAUL
PLUMLEE,MASON
PLUMLEE,MILES
PONDEXTER,QUINCY
PORTER,OTTO
POWELL,DWIGHT
PRESSEY,PHIL
PRICE,AJ
PRICE,RONNIE
PRIGIONI,PABLO
PRINCE,TAYSHAUN
RANDLE,JULIUS
RANDOLPH,SHAVLIK
RANDOLPH,ZACH
REDICK,JJ
RICEJR,GLEN
RICHARDSON,JASON
RIDNOUR,LUKE
RIVERS,AUSTIN
ROBERSON,ANDRE
ROBERTS,BRIAN
ROBERTS,RONALD
ROBINSON,GLENN
ROBINSON,NATE
ROBINSON,THOMAS
RONDO,RAJON
ROSE,DERRICK
ROSS,TERRENCE
RUBIO,RICKY
RUDEZ,DAMJAN
RUSH,BRANDON
SACRE,ROBERT
SALMONS,JOHN
SAMPSON,JAKARR
SANDERS,LARRY
SCHRODER,DENNIS
SCOLA,LUIS
SCOTT,MIKE
SEFOLOSHA,THABO
SERAPHIN,KEVIN
SESSIONS,RAMON
SHUMPERT,IMAN
SHVED,ALEXEY
SIMS,HENRY
SINGLER,KYLE
SLOAN,DONALD
SMART,MARCUS
SMITH,GREG
SMITH,ISH
SMITH,JR
SMITH,JASON
SMITH,JOSH
SMITH,RUSS
SNELL,TONY
SPEIGHTS,MARREESE
SPLITTER,TIAGO
STAUSKAS,NIK
STEPHENSON,LANCE
STIEMSMA,GREG
STOKES,JARNELL
STOUDEMIRE,AMAR'E
STUCKEY,RODNEY
SULLINGER,JARED
TAYLOR,JEFF
TEAGUE,JEFF
TELETOVIC,MIRZA
TEMPLE,GARRETT
TERRY,JASON
THOMAS,ISAIAH
THOMAS,LANCE
THOMPSON,HOLLIS
THOMPSON,JASON
THOMPSON,KLAY
THOMPSON,TRISTAN
THORNTON,MARCUS
TOLLIVER,ANTHONY
TUCKER,PJ
TURIAF,RONNY
TURKOGLU,HEDO
TURNER,EVAN
UDOH,EKPE
UDRIH,BENO
VALANCIUNAS,JONAS
VAREJAO,ANDERSON
VASQUEZ,GREIVIS
VILLANUEVA,CHARLIE
VONLEH,NOAH
VUCEVIC,NIKOLA
WADE,DWYANE
WAITERS,DION
WALKER,KEMBA
WALL,JOHN
WALLACE,GERALD
WARREN,TJ
WATSON,CJ
WEAR,TRAVIS
WEBSTER,MARTELL
WEST,DAVID
WESTBROOK,RUSSELL
WHITESIDE,HASSAN
WHITTINGTON,SHAYNE
WIGGINS,ANDREW
WILCOX,CJ
WILLIAMS,DERON
WILLIAMS,DERRICK
WILLIAMS,LOU
WILLIAMS,MARVIN
WILLIAMS,MO
WILLIAMS,SHAWNE
WITHEY,JEFF
WOLTERS,NATE
WRIGHT,BRANDAN
WRIGHT,DORELL
WROTEN,TONY
YOUNG,JAMES
YOUNG,NICK
YOUNG,THADDEUS
ZELLER,CODY
ZELLER,TYLER
LIDIA,ALEXEEVA
KAREEM,ABDULJABBAR
PHOG,ALLEN
HAROLD,ANDERSON
NATE,ARCHIBALD
PAUL,ARIZIN
RED,AUERBACH
GENO,AURIEMMA
TOM,BARLOW
LEON,BARMORE
CHARLES,BARKLEY
DON,BARKSDALE
SAM,BARRY
RICK,BARRY
ELGIN,BAYLOR
JOHN,BECKMAN
CLAIR,BEE
WALT,BELLAMY
SERGEI,BELOV
DANNY,BIASONE
DAVE,BING
LARRY,BIRD
CAROL,BLAZEJOWSKI
ERNEST,BLOOD
JIM,BOEHEIM
BENNIE,BORGMANN
BILL,BRADLEY
HUBIE,BROWN
ROGER,BROWN
JOE,BRENNANN
LARRY,BROWN
WALTER,BROWN
BUFFALO,GERMANS
JOHN,BUNN
JERRY,BUSS
HOWARD,CANN
JIM,CALHOUN
LOU,CARNESECCA
BEN,CARNEVALE
PETE,CARRIL
EVERETT,CASE
ORIGINAL,CELTICS
AL,CERVI
WILT,CHAMBERLAIN
VAN,CHANCELLOR
JOHN,CHANEY
SWEETWATER,CLIFTON
JERRY,COLANGELO
JODY,CONRADT
CHARLES,COOPER
KRESIMIR,COSIC
BOB,COUSY
DAVE,COWENS
JOAN,CRAWFORD
DENNY,CRUM
BILLY,CUNNINGHAM
DENISE,CURRY
DRAZEN,DALIPAGIC
CHUCK,DALY
MEL,DANIELS
ADRIAN,DANTLEY
WILLIAM,DAVIDSON
ROBERT,DAVIES
EVERETT,DEAN
FORREST,DEBERNARDI
DAVE,DEBUSSCHERE
HENRY,DEHNERT
ED,DIDDLE
ANNE,DONOVAN
BOB,DOUGLAS
BRUCE,DRAKE
CLYDE,DREXLER
ALVA,DUER
JOE,DUMARS
TERESA,EDWARDS
WAYNE,EMBRY
PAUL,ENDACOTT
ALEX,ENGLISH
JIM,ENRIGHT
JULIUS,ERVING
PATRICK,EWING
CLIFF,FAGAN
PEDRO,FERRANDIZ
FIRST,TEAM
HARRY,FISHER
LARRY,FLEISHER
BUD,FOSTER
WALT,FRAZIER
MARTY,FRIEDMAN
JOE,FULKS
SANDRO,GAMBA
CLARENCE,GAINES
LADDIE,GALE
HARRY,GALLATIN
JACK,GARDNER
WILLIAM,GATES
DAVE,GAVITT
GEORGE,GERVIN
AMORY,GILL
ARTIS,GILMORE
TOM,GOLA
ALEKSANDR,GOMELSKY
GAIL,GOODRICH
ED,GOTTLIEB
RUSS,GRANIK
HAL,GREER
RICHIE,GUERIN
SUE,GUNTER
LUTHER,GULICK
CLIFF,HAGAN
ALEX,HANNUM
HARLEM,GLOBETROTTERS
LES,HARRISON
MARV,HARSHMAN
DON,HASKINS
SYLVIA,HATCHELL
JOHN,HAVLICEK
CONNIE,HAWKINS
ELVIN,HAYES
MARQUES,HAYNES
TOMMY,HEINSOHN
GEORGE,HEPBRON
FERENC,HEPP
CHICK,HEARN
ED,HICKEY
ED,HICKOX
TONY,HINKLE
HOWARD,HOBSON
NAT,HOLMAN
RED,HOLZMAN
BOB,HOUBREGS
BAILEY,HOWELL
GEORGE,HOYT
BOB,HURLEY
CHUCK,HYATT
HANK,IBA
NED,IRISH
DAN,ISSEL
PHIL,JACKSON
BUDDY,JEANNETTE
DENNIS,JOHNSON
MAGIC,JOHNSON
GUS,JOHNSON
WILLIAM,JOHNSON
NEIL,JOHNSTON
KC,JONES
WILLIAM,JONES
SAM,JONES
MICHAEL,JORDAN
ALVIN,JULIAN
FRANK,KEANEY
PAT,KENNEDY
GEORGE,KEOGAN
BERNARD,KING
PHIL,KNIGHT
BOB,KNIGHT
MIKE,KRZYZEWSKI
JOHN,KUNDLA
BOB,KURLAND
WARD,LAMBERT
BOB,LANIER
JOE,LAPCHICK
LLOYD,LEITH
MEADOWLARK,LEMON
SLICK,LEONARD
GUY,LEWIS
NANCY,LIEBERMAN
EMIL,LISTON
HARRY,LITWACK
EARL,LLOYD
KEN,LOEFFLER
DUTCH,LONBORG
CLYDE,LOVELLETTE
JERRY,LUCAS
HANK,LUISETTI
ED,MACAULEY
HERB,MAGEE
KARL,MALONE
MOSES,MALONE
PETE,MARAVICH
SARUNAS,MARCIULIONIS
SLATER,MARTIN
ROBERT,MCADOO
BRANCH,MCCRACKEN
JACK,MCCRACKEN
ARAD,MCCUTCHAN
KATRINA,MCCLAIN
BOBBY,MCDERMOTT
AL,MCGUIRE
FRANK,MCGUIRE
DICK,MCGUIRE
KEVIN,MCHALE
JOHN,MCLENDON
WALTER,MEANWELL
DINO,MENEGHIN
RAY,MEYER
ANN,MEYERS
RED,MIHALIK
GEORGE,MIKAN
CHERYL,MILLER
RALPH,MILLER
REGGIE,MILLER
BILL,MOKRAY
EARL,MONROE
BILLIE,MOORE
RALPH,MORGAN
FRANK,MORGENWECK
ALONZO,MOURNING
CHRIS,MULLIN
CALVIN,MURPHY
CHARLES,MURPHY
JAMES,NAISMITH
DON,NELSON
PETE,NEWELL
CHARLES,NEWTON
HANK,NICHOLS
ACA,NIKOLIC
MIRKO,NOVOSEL
JOHN,NUCATOLA
JOHN,OBRIEN
LARRY,OBRIEN
HAKEEM,OLAJUWON
HAROLD,OLSEN
LUTE,OLSON
PAT,PAGE
ROBERT,PARISH
GARY,PAYTON
UBIRATAN,PEREIRA
DRAZEN,PETROVIC
BOB,PETTIT
ANDY,PHILLIP
SCOTTIE,PIPPEN
RICK,PITINO
MAURICE,PODOLOFF
JIM,POLLARD
HENRY,PORTER
ERNEST,QUIGLEY
JACK,RAMSAY
FRANK,RAMSEY
WILLIS,REED
WILLIAM,REID
NOLAN,RICHARDSON
MITCH,RICHMOND
PAT,RILEY
ELMER,RIPLEY
ARNIE,RISEN
OSCAR,ROBERTSON
DAVID,ROBINSON
GUY,RODGERS
DENNIS,RODMAN
JOHN,ROOSMA
CESARE,RUBINI
MARVIN,RUDOLPH
ADOLPH,RUPP
CATHY,RUSH
JOHN,RUSSELL
BILL,RUSSELL
ARVYDAS,SABONIS
LEONARD,SACHS
LYNN,SJOHN
RALPH,SAMPSON
SATCH,SANDERS
ABE,SAPERSTEIN
ARTHUR,SCHABINGER
DOLPH,SCHAYES
ERNEST,SCHMIDT
JOHN,SCHOMER
BARNEY,SEDRAN
ULJANA,SEMJONOVA
EVERETT,SHELTON
DALLAS,SHIRLEY
JERRY,SLOAN
DEAN,SMITH
BORIS,STANKOVIC
DAWN,STALEY
CHRIS,STEINMETZ
ED,STEITZ
DAVID,STERN
JOHN,STOCKTON
MAURICE,STOKES
VIVIAN,STRINGER
EARL,STROM
PAT,SUMMITT
JERRY,TARKANIAN
GOOSE,TATUM
CHUCK,TAYLOR
FRED,TAYLOR
BERTHA,TEAGUE
TEXAS,WESTERN
ISIAH,THOMAS
DAVID,THOMPSON
JOHN,THOMPSON
JOHN,THOMPSON
NATE,THURMOND
DAVE,TOBEY
OSWALD,TOWER
ARTHUR,TRESTER
JACK,TWYMAN
WES,UNSELD
TARA,VANDERVEER
ROBERT,VANDIVIER
DICK,VITALE
ED,WACHTER
MARGARET,WADE
CHET,WALKER
DAVID,WALSH
BILL,WALTON
BOBBY,WANZER
STAN,WATTS
CLIFF,WELLS
JERRY,WEST
NERA,WHITE
LOUIS,WILKE
LENNY,WILKENS
JAMAAL,WILKES
DOMINIQUE,WILKINS
GARY,WILLIAMS
ROY,WILLIAMS
TEX,WINTER
LYNETTE,WOODARD
MORGAN,WOOTTEN
JOHN,WOODEN
PHIL,WOOLPERT
JAMES,WORTHY
GEORGE,YARDLEY
FRED,ZOLLNER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.