Skip to content

Instantly share code, notes, and snippets.

View maxludden's full-sized avatar

Max Ludden maxludden

  • Upstate New York
  • 19:39 (UTC -05:00)
View GitHub Profile
@maxludden
maxludden / maxlogo.svg
Created April 10, 2025 19:23
maxludden's logo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maxludden
maxludden / rich_logger.py
Last active October 8, 2025 01:16
A loguru logger that uses rich to print to the console.
"""Create a rich.console.Console sink for a loguru.Logger.
This module provides a custom sink for the loguru logger that uses the rich
library to format and display log messages in a visually appealing way. It also
includes functions to set up logging, manage run counts, and handle log file
creation and cleanup.
It is designed to be used in Python projects that require structured and colorful
logging output, especially for long-running processes or applications where
tracking progress and errors is important.
@maxludden
maxludden / index.html
Created June 30, 2023 14:25
Layering background gradients
<!-- The gradient backgrounds are applied to the body -->
@maxludden
maxludden / .gitignore
Created December 22, 2022 23:43
Max's standard .gitignore
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python