Giter Site home page Giter Site logo

drafthacker's People

Contributors

dbc-apprentice avatar rurabe avatar sungchoi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

noshaf sungchoi

drafthacker's Issues

SimpleCov and pushing

It looks like every time we use simplecov and then pull, we will get merge conflicts. I don't know if there is an easy way to get by it but I have been using git rm on the coverage file before every commit, because every time you run the tests it gets regenerated.

Move the pick-team link functionality from the link class to the team class

For efficiency's sake- In pick it will make (14*number of teams) DB calls to find its team individually. If it were in the team class, it would only make (number of teams) calls to the DB and return the entire array of picks.

I would also love to make it an after_commit callback so that it's not dependent on the order of the megahash, but when it was an after_commit in the pick class it basically crashed rails server.

Set up draft cron job

Maybe every 5 seconds when draft_status == active? It might be more efficient if it can be scheduled for the draft date/time.

We can tune it after we get it working

Upserts

Allow the data to update or insert if not found

Chart pick probability distributions based on ADP

Based on a players average pick, high and low, we can make certain statistical assumptions about when that player will get selected. The distribution can be mapped to picks and thus can we can calculate the probability that a player will be drafted at any given pick in the draft.

upsert

finish fixing upsert module

fix slots
fix picks
fix rounds!

Make league update more efficient

League should check the api to see if the data is new, and should update only if the data is new. This is dependent on the upsert process getting worked out.

Batch inserts

Nested attributes inserts atomically, which is bad for us. Get batch inserts working.

next_pick.number

in the last round, next pick is nil, which means that the number method errors out

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.