Skip to content

Instantly share code, notes, and snippets.

@EvanZ
Created November 26, 2012 03:18
Show Gist options
  • Save EvanZ/4146443 to your computer and use it in GitHub Desktop.
Save EvanZ/4146443 to your computer and use it in GitHub Desktop.
matchup example
{
"_id" : ObjectId("50b2d404597f1444a8000456"), //BSON identifier for MongoDB
"espn_id" : "400277756",
"date" : "2012-11-03",
"q" : 2, //quarter #2
"mid" : 4, //5th matchup of quarter (starting lineup of each period has mid=0),
"hs" : 38, //home score at end of stint
"as" : 43, //away score at end of stint
"start" : "8:27", //started at...
"end" : "6:15", //ended at...
"url" : "http://scores.nbcsports.msnbc.com/nba/pbp.asp?gamecode=2012110312",
"home" : "Clippers",
"away" : "Warriors",
"Clippers" : {
"on" : [
"Eric Bledsoe",
"Jamal Crawford",
"Lamar Odom",
"Matt Barnes",
"Ryan Hollins"
],
"entered" : [ ], //nobody entered
"exited" : [ ], //nobody exited
"stats" : {
"poss" : 4, //possessions
"pts" : 8, //points scored
"oreb" : 0, //offensive rebounds
"dreb" : 2, //defensive rebounds
"orebx" : 2, //missed offensive rebound chances
"drebx" : 0, //missed defensive rebound chances
"tov" : 1, //turnovers
"fta" : 2, //free throw attempts
"ftm" : 1, //free throws made
"foul" : 3, //fouls
"fgm" : 3, //field goals made
"fgx" : 1 //field goals missed
}
},
"Warriors" : {
"on" : [
"Carl Landry",
"Festus Ezeli",
"Jarrett Jack",
"Klay Thompson",
"Stephen Curry"
],
"entered" : [
"Festus Ezeli" //Ezeli entered
],
"exited" : [
"David Lee" //Lee went to bench
],
"stats" : {
"poss" : 6,
"pts" : 6,
"oreb" : 0,
"dreb" : 2,
"orebx" : 2,
"drebx" : 0,
"tov" : 0,
"fta" : 2,
"ftm" : 2,
"foul" : 0,
"fgm" : 2,
"fgx" : 2
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment