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 | |
from multiprocessing import cpu_count | |
from concurrent.futures import ThreadPoolExecutor | |
print(f'my cpu count is {cpu_count()}') | |
from datetime import datetime | |
gameIds = [718136, 718106, 718096, 718080, 718067, 718054, 718047, 718013, 717913, 717895, 717882] | |
#gameIds = [718136, 718106, 718096, 718080, 718067, 718054, 718047, 718013, 718008, 717988, 717968, 717956, 717938, 717937, 717924, 717913, 717895, 717882, 717859, 717845, 717835, 717822, 717805, 717783, 717771, 717752, 717738, 717728] |
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 boto3 | |
from datetime import datetime, timedelta | |
import pandas as pd | |
from openpyxl import Workbook | |
from openpyxl.utils import get_column_letter | |
from openpyxl.styles import Font, PatternFill | |
from openpyxl.worksheet.table import Table, TableStyleInfo | |
def get_resource_name(resource_id): |
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 | |
from bs4 import BeautifulSoup | |
from pprint import pprint | |
#import re | |
import pandas as pd | |
baseurl = 'https://www.pro-football-reference.com' | |
year = 2021 | |
playerDataFile = f"playerData_{year}.csv" | |
#ffFile = 'fffile.csv' |
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 | |
from bs4 import BeautifulSoup | |
url = 'https://www.pro-football-reference.com' | |
year = 2021 | |
r = requests.get(url + '/years/' + str(year) + '/fantasy.htm') | |
soup = BeautifulSoup(r.content, 'html.parser') | |
parsed_table = soup.find_all('table')[0] | |
#print(parsed_table) |
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
print('hello') |
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
#!/usr/bin/env python | |
## PEP8 says pick a variable naming convention, and stick to it | |
#### mixed case for variables | |
#### underscores for functions | |
#### double and single quotes are interchangeable - use the one which will look cleanest | |
import os | |
import collections | |
words = '' | |
checkWord = '' |
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
__author__ = '502400200' | |
from random import random,randint,randrange | |
pcount = 40 | |
multrange = 13 | |
divrange = 144 | |
levels = list('ghijklmnopqrstuvwxyz') | |
print levels | |
def check_level(): |
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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>Animated Gif Test</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
<script type="text/javascript"> |
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
### Assignment ### | |
# | |
# Your assignment is to implement the | |
# following function: `find_next_prime`. | |
# As the name states, given the number `n` the | |
# function should return the next closest prime. | |
# | |
# Examples: | |
# * `find_next_prime(6)` should return 7. | |
# * `find_next_prime(10)` should return 11. |
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
__author__ = 'skamer' | |
import speech_recognition as sr | |
from os import system | |
r = sr.Recognizer() | |
def talk(x): | |
phrase = "say -v samantha \"{}\"".format(x) | |
return system(phrase) | |
def listen(x): |
NewerOlder