Skip to content

Instantly share code, notes, and snippets.

View slyt's full-sized avatar

Taylor Sly slyt

  • Target
View GitHub Profile
@slyt
slyt / uv_groundwater_python_workflow.md
Last active October 28, 2025 20:32
uv for groundwater projects

Reproducible Python Project Workflow with uv (Groundwater Science Edition: flopy + pandas)

This guide shows a clean, end-to-end, team-friendly workflow using uv — from starting a project to a teammate running it exactly the same way — using flopy (MODFLOW utilities) and pandas for analysis.


0) One-time prerequisites (everyone)

Install uv

  • macOS / Linux:
@slyt
slyt / openai_proxy_otel.py
Created July 22, 2025 07:10
openai_proxy_otel.py
import os
import logging
from typing import Optional
import openai
import redis
import tenacity
from fastapi import FastAPI, Request, HTTPException, Depends, BackgroundTasks
from fastapi.responses import JSONResponse
from opentelemetry import trace, metrics, context
@slyt
slyt / langfuse_otel.py
Created July 21, 2025 18:33
langfuse_otel.py
import time
import base64
from opentelemetry import trace
from opentelemetry.sdk.resources import Resource
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
# === CONFIGURATION ===
@slyt
slyt / pokemon_max_cp_plotting.ipynb
Created May 10, 2019 17:42
Various iterations of plots to visualize highest CP Pokemon from Pokemon Go
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.