Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# coding: utf-8
# module imports
from patsy import dmatrices
import pandas as pd
from sklearn.linear_model import LogisticRegression
import statsmodels.discrete.discrete_model as sm
{
"bowlGames":
[
"Rose Bowl",
"Orange Bowl",
"Sugar Bowl",
"Cotton Bowl",
"Peach Bowl",
"Fiesta Bowl",
"Citrus Bowl",
{
"bowlGames":[
"Rose Bowl",
"Fiesta Bowl",
"Peach Bowl",
"Cotton Bowl",
"Orange Bowl",
"Gator Bowl",
"Cheez-It Bowl",
"Camping World Bowl",
@akeaswaran
akeaswaran / mls-api-docs.md
Last active March 5, 2018 06:27
MLS GraphQL API Docs

Interacting with MLS GraphQL API

For GraphQL response, send POST request to https://golazo-ql.mlsdigital.net/graphql using PostMan with following headers:

Content-Type:application/json
Accept:application/json

and following request body:

@akeaswaran
akeaswaran / test-metadata.json
Last active January 2, 2018 16:50
testing metadata import for CFC v2
{
"bowlGames": ["Rose Bowl", "Peach Bowl", "Sugar Bowl", "Cotton Bowl", "Orange Bowl", "Fiesta Bowl", "Gator Bowl", "Citrus Bowl", "Belk Bowl", "Alamo Bowl"],
"conferences": [{
"confName": "SEC",
"confFullName": "Southeastern",
"confTeams": [{
"name": "Alabama",
"abbreviation": "ALA",
"prestige": "95",
"state": "Alabama",
@akeaswaran
akeaswaran / pollscore.m
Last active November 8, 2019 23:54
Calculating poll score in CFC
-(void)updateStrengthOfWins {
int strWins = 0;
for ( int i = 0; i < gameSchedule.count; ++i ) {
Game *g = gameSchedule[i];
if (g.homeTeam == self) {
strWins += pow(60 - g.awayTeam.rankTeamPollScore,2);
} else {
strWins += pow(60 - g.homeTeam.rankTeamPollScore,2);
}
}
Virginia Vultures,VV
QB,Taylor Heinicke, 23, 2015, 86, 85, 95, 85, 87, 55, 1, 5
QB,Derek Devine, 32, 2007, 75, 65, 85, 7797, 20, 0.5, 5
RB,Bruce Perry, 29, 2008, 82, 75, 95, 85, 87, 62, 1, 5
RB,Keenan Reynolds, 23, 2016, 74, 75, 88, 81, 77, 61, 1, 5
WR,David Clowney,31,2007,75,93,71,65,83,71,1,5
WR,James Roe,42,2000,81,88,70,54,78,86,70,1,5
WR,Edgar Poe,24,2016,88,53,89,77,97,83,1,5
WR,Joey Haynos,27,2010,77,82,85,72,79,65,1,5
OL,Tony Davis,28,2011,72,52,92,90,83,76,1,5
@akeaswaran
akeaswaran / maddenroster.txt
Created July 6, 2016 02:17
rehost of Madden-based roster for PFC
Cincinnati Bengals,CIN
QB,Andy Dalton,27,2012,50,81,93,86,78,71,9.5,2
QB,Josh Johnson,29,2008,85,65,83,87,68,86,6.5,4
QB,A.J. McCarron,24,2013,101,65,91,84,72,64,6.1,5
RB,Jeremy Hill,22,2016,90,78,86,115,88,85,4.5,5
RB,Cedric Peerman,28,2011,94,70,85,84,90,89,2.9,2
RB,Giovani Bernard,23,2015,80,77,81,76,87,95,2.7,3
RB,Rex Burkhead,25,2013,58,68,90,84,80,88,2.5,2
WR,A.J. Green,27,2010,92,87,95,93,87,94,5.4,1
WR,Marvin Jones,25,2012,89,74,84,84,88,89,3.9,3