Cheatography
https://cheatography.com
A5: Cheat Sheet Tasks A5: Cheat Sheet Tasks
This is a draft cheat sheet. It is a work in progress and is not finished yet.
tasks players
$ rails initialize:players |
Player#team_id #first_name #last_name #slug #dob, #position_mask |
Overall, this script automates the process of importing player data from a JSON source, maps relevant attributes to player records, and stores them in the database. |
|
$ rails update:players |
Player#status |
|
$ rails players:download_photos:low |
Overall, this script automates the process of downloading player photos in low quality and organizing them into team-specific directories on the user's desktop. |
tasks matches
$ rails initialize:matches |
Match#date #year #round #match #status #result #venue #home_team_ticker #away_team_ticker #home_team_score #away_team_score #home_team_id #away_team_id #bye |
|
$ rails update:matches |
Match#status #home_team_score #away_team_score #result |
tasks player_match_stats
$ rails initialize:player_match_stats |
PlayerMatchStat#player_id #year #round #match |
|
$ rails update:player_match_stats:agregate_units:price |
PlayerMatchStat#price |
|
$ rails update:player_match_stats:agregate_units:break_evens |
PlayerMatchStat#break_even #break_even |
|
$ rails update:player_match_stats:agregate_units:transfers_in_and_out |
PlayerMatchStat#transfers_in #transfers_out |
Overall, this script automates the process of updating player match statistics by fetching the number of transfers in and transfers out for each player in a specified round. Meant to be running the task during the last match of the round, specifically during halftime, to obtain cemented results. |
|
$ rails update:player_match_stats:agregate_units:selections |
PlayeMatchStat#owned_by #selections #selections_captain #selections_vice_captain #selections_emergency #selections_bench |
Meant to be running the task during the last match of the round, specifically during halftime, to obtain cemented results. |
|
$ rails update:player_match_stats:base_units |
PlayerMatchStat#match #player #played #kicks #hand_balls #marks #tackles #goals #behinds #hitouts #frees_for #frees_agains #time_on_ground |
|
$ rails update:player_match_stats:base_units:kick_ins |
PlayerMatchStat#kick_ins #kick_ins_played_on |
|
$ rails update:player_match_stats:derived_units:match_share |
PlayerMatchStat#match_share |
|
$ rails update:player_match_stats:predictive_units:prices_and_scores |
PlayerMatchStat#projected_price #projected_prices #projected_score #projected_scores |
|