Skip to content

Instantly share code, notes, and snippets.

===== NEW ROUND =====
Auburn-1 (94.1%) vs Alabama ST/Saint Francis U-16 (5.9%), Winner: Auburn
Louisville-8 (52.9%) vs Creighton-9 (47.1%), Winner: Creighton
Michigan-5 (70.6%) vs UC San Deigo-12 (29.4%), Winner: Michigan
Texas A&M-4 (76.5%) vs Yale-13 (23.5%), Winner: Texas A&M
Ole Miss-6 (64.7%) vs San Deigo St/North Carolina-11 (35.3%), Winner: San Deigo St/North Carolina
Iowa St.-3 (82.4%) vs Lipscomb-14 (17.6%), Winner: Iowa St.
Marquette-7 (58.8%) vs New Mexico-10 (41.2%), Winner: Marquette
Michigan St.-2 (88.2%) vs Bryant-15 (11.8%), Winner: Michigan St.
@CoreyMSchafer
CoreyMSchafer / madness.py
Created March 17, 2025 21:54
March Madness Simulator
import random
from dataclasses import dataclass
@dataclass
class Team:
name: str
seed: int
@CoreyMSchafer
CoreyMSchafer / tutorial.py
Created August 15, 2024 17:48
Python Tkinter Tutorial - Part 2
import tkinter as tk
from tkinter import ttk
def main():
app = Application()
app.mainloop()
class Application(tk.Tk):
@CoreyMSchafer
CoreyMSchafer / tutorial.py
Created July 27, 2024 16:47
Python Tkinter Tutorial - Part 1
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
root.title("Simple App")
def add_to_list(event=None):
text = entry.get()
if text:
@CoreyMSchafer
CoreyMSchafer / autopay.py
Created May 31, 2024 22:37
Using Selenium to Automate Bill Payments
import io
import logging
import os
import smtplib
from email.message import EmailMessage
from pathlib import Path
from dotenv import load_dotenv
from selenium import webdriver
from selenium.common.exceptions import TimeoutException, WebDriverException
@CoreyMSchafer
CoreyMSchafer / YouTube-OAuth-Snippets
Created September 10, 2020 02:06
YouTube-OAuth-Snippets
# token.pickle stores the user's credentials from previously successful logins
if os.path.exists('token.pickle'):
print('Loading Credentials From File...')
with open('token.pickle', 'rb') as token:
credentials = pickle.load(token)
# Google's Request
from google.auth.transport.requests import Request