Skip to content

Instantly share code, notes, and snippets.

@infinitless
infinitless / ChessPerf.py
Last active May 11, 2022 11:46
Chess Performance
import requests
import pandas as pd
from tabulate import tabulate
import sys
pd.set_option('display.max_columns', None)
pd.set_option('display.max_rows', None)
pd.set_option('display.width', 600)
playerurl = "https://www.ecfrating.org.uk/v2/new/api.php?v2/players/name/"
@infinitless
infinitless / Random.py
Last active March 19, 2022 14:53
The best Random Number is Pi! This code generates random numbers using one million digits of Pi.
import random
# Read all decimal places of PI from the file
# and store as a string of 1 Million digits
with open("piDigits.txt", 'r') as f:
pidecimals = f.read()
f.close()
# Generate a list of random numbers
@infinitless
infinitless / IMDB.py
Created January 28, 2022 17:28
Outputs a list of IMDB top 250 movies
import requests
from bs4 import BeautifulSoup
import re
URL = "https://www.imdb.com/chart/top/"
response = requests.get(URL)
scraped = response.text
mysoup = BeautifulSoup(scraped, "html.parser")