Skip to content

Instantly share code, notes, and snippets.

@akeaswaran
akeaswaran / testroster.txt
Created July 5, 2016 18:42
Test roster for PFC
Cincinnati Tigers,CIN
QB,Teddy Boyd,26,2013,83,73,80,84,80,85,10.092000,3
QB,Clint Johnson,28,2009,83,75,83,53,82,91,5.394000,4
CB,Emilio Chen,31,2007,96,104,80,86,82,91,2.600000,4
RB,Ernie Hunt,30,2008,91,81,59,82,56,106,4.611000,4
RB,Shelby Rubio,31,2007,83,80,67,71,74,93,4.089000,3
RB,Eugene Reed,24,2014,57,83,72,85,39,96,3.393000,2
WR,Adam Allen,24,2014,83,72,81,77,82,86,4.350000,3
WR,Hunter Bolton,22,2016,50,79,58,83,81,69,4.350000,2
WR,Rondall Watt,30,2008,73,94,74,70,82,93,3.393000,3
@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
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 / 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 / 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:

{
"bowlGames":[
"Rose Bowl",
"Fiesta Bowl",
"Peach Bowl",
"Cotton Bowl",
"Orange Bowl",
"Gator Bowl",
"Cheez-It Bowl",
"Camping World Bowl",
{
"bowlGames":
[
"Rose Bowl",
"Orange Bowl",
"Sugar Bowl",
"Cotton Bowl",
"Peach Bowl",
"Fiesta Bowl",
"Citrus Bowl",
@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);
}
}
#!/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