Skip to content

Instantly share code, notes, and snippets.

View jbirdkerr's full-sized avatar
🐩

Justin Kerr jbirdkerr

🐩
View GitHub Profile
@darrenjrobinson
darrenjrobinson / Auth_Query_MSGraph_MSAL.py
Last active November 30, 2022 22:48
Authenticate and Query Microsoft Graph using MSAL and Python. Associated blogpost https://blog.darrenjrobinson.com/microsoft-graph-using-msal-with-python/
import msal
import jwt
import json
import requests
import pandas as pd
from datetime import datetime
accessToken = None
requestHeaders = None
tokenExpiry = None
@GJMcClintock
GJMcClintock / Getting Started with College Football Data in Python.md
Last active November 11, 2025 20:27
Getting Started with College Football Data in Python

Introduction to College Football Data Using Python

If you are reading this - you enjoy college football. Or you may just enjoy working with different types of data. Hopefully, you're like me and like both. I am self-taught in Python, so I am by no means the end all be all expert of how to approach things, but if I can figure it out, you can to.

This guide is a fork of Parker Flemings (@statsowar on Twitter) guide "Introduction to College Football Data with R and cfbscrapR". We will go through the same excercises he did, simply with the Python equivalent to his R masterpiece.

If you have any questions - or see any errors - shoot me a tweet @GJMcClintock. This is very pragmagtically done - if it works, it works. None of what I presently deal with is very resource intensive, so I am sure there are much more efficient ways to get the job done. If you have suggestions on tha

@mikefromit
mikefromit / glog.md
Last active September 5, 2016 23:09
Google style logging

logging.py

def setup_logging():
    """Setup Google-style logging

    From: https://github.com/twitter/commons/blob/master/src/python/twitter/common/log/formatters/glog.py
    """
    fmt = '%(levelletter)s%(asctime)s.%(msecs).03d %(process)d %(filename)s:%(lineno)d] %(message)s'