This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import os | |
import random | |
from espn_api.football import League | |
#Palmetto | |
league_id = 164483 | |
# chs | |
# league_id = 205018 | |
league = League(league_id=league_id, year=2021, debug=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cool fidenzas | |
https://editor.p5js.org/dtcarls/sketches/ORsosL5L8 | |
0xFddA6Fb7C9dEBaA5a6129dfDC7cfC2AA8fDaD8AA | |
0x9D9270717DEf1ebb5923fe9D7Ca62FEf0f108dfB | |
0xAEf8C2342Fb1e8Bb8eab767aCF61074cAc0723d1 | |
0x22eDd1bb033F03321F7eb4c513ee6550eaF670A3 | |
0xB24EF85bebd3c59BE93eb9C9EAEB182bcC1fD8a7 | |
0xfabBBccffd5A7EBcb5ef95ac9875BDd3841A6Eef |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib.request | |
import json | |
import csv | |
req = urllib.request.Request('https://lm-api-reads.fantasy.espn.com/apis/v3/games/ffl/seasons/2024/segments/0/leaguedefaults/3?view=kona_player_info') | |
req.add_header('x-fantasy-filter','{"players":{"filterSlotIds":{"value":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,23,24]},"limit":150,"offset":0,"sortAverageAuction":{"sortAsc":false,"sortPriority":1},"sortDraftRanks":{"sortPriority":100,"sortAsc":true,"value":"STANDARD"},"filterRanksForScoringPeriodIds":{"value":[1]},"filterRanksForRankTypes":{"value":["PPR"]},"filterRanksForSlotIds":{"value":[0,2,4,6,17,16]},"filterStatsForTopScoringPeriodIds":{"value":2,"additionalValue":["002021","102021","002020","022021"]}}}') | |
with urllib.request.urlopen(req) as url: | |
data = json.loads(url.read().decode()) | |
print(data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/12050021/how-to-make-xvfb-display-visible | |
https://github.com/openai/gym#rendering-on-a-server | |
https://quay.io/organization/openai | |
https://askubuntu.com/questions/121014/how-do-i-list-connected-displays-using-the-command-line | |
https://stackoverflow.com/questions/16726227/xvfb-failed-start-error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### Source: https://www.learnopencv.com/install-opencv3-on-ubuntu/ | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get remove x264 libx264-dev -y | |
## Step 2.2: Install dependencies | |
sudo apt-get install build-essential checkinstall cmake pkg-config yasm gfortran git -y | |
sudo apt-get install libjpeg8-dev libjasper-dev libpng12-dev -y | |
# If you are using Ubuntu 16.04 | |
sudo apt-get install libtiff5-dev -y | |
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As root: | |
apt-get update | |
apt-get upgrade | |
apt-get install golang python3-dev libjpeg-dev python3-pip python-dev make tmux htop chromium-browser git cmake xvfb swig libjpeg-turbo8-dev | |
########https://www.learnopencv.com/install-opencv3-on-ubuntu/ | |
pip3 install --upgrade pip | |
pip3 install numpy | |
# https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/ | |
apt-get install apt-transport-https ca-certificates curl software-properties-common |