Skip to content

Instantly share code, notes, and snippets.

View travishathaway's full-sized avatar
🐢
Taking it slow and easy

Travis Hathaway travishathaway

🐢
Taking it slow and easy
View GitHub Profile
@travishathaway
travishathaway / file_vs_sqlite.py
Created May 19, 2022 13:13
Storing IDs in a file vs. SQLite
import os
import sys
import sqlite3
import time
import uuid
from functools import wraps
DB_FILE = 'tester.db'
FILE = 'tester.cache'
@travishathaway
travishathaway / dayz_off.py
Created October 9, 2025 06:27
Days Off Calculator
"""
I wrote this script because I'm trying to figure out what day
would be the best day to take off if I only want to work four days
a week.
The best day here means I will get the most time off in the year if
I choose this day.
The holidays are German holidays and the extra days are company
holidays.
@travishathaway
travishathaway / thanksgiving_demo.py
Created November 24, 2025 14:06
Thanksgiving Dinner Served with Python and Conda
#!/usr/bin/env python3
"""
🦃 Thanksgiving Dinner Demo 🦃
Because why cook a real Thanksgiving dinner when you can just...
run it with conda or pixi?
How to use?
With conda:
@travishathaway
travishathaway / strip_packages.sh
Created December 17, 2025 07:45
Strip conda package contents and replace with mock/testing placeholder data
#! /bin/bash
#
# Strip Packages
#
# This is script that goes through all conda packages in the current
# directory and removes everything except the essential "info" metadata
# folder. It also updates the metadata so that this package can be installed
# by conda without failing package validation.
echo "Processing .conda files"