Skip to content

Instantly share code, notes, and snippets.

View damonbayer's full-sized avatar

Damon Bayer damonbayer

View GitHub Profile
import subprocess
try:
import psutil
# Find all MLflow server processes
mlflow_processes = []
for proc in psutil.process_iter(["pid", "name", "cmdline"]):
try:
cmdline = proc.info.get("cmdline", [])
library(tidyverse)
library(arrow)
library(fs)
library(withr)
library(here)
flu_hub_path <- here("FluSight-forecast-hub")
flu_ts_original <- read_csv(
"https://raw.githubusercontent.com/cdcepi/FluSight-forecast-hub/refs/heads/main/target-data/time-series.csv"
def is_empty_chart(ch):
spec = ch.to_dict()
# Unit chart: no data, no mark, no encoding
if "layer" not in spec:
return not (spec.get("data") or spec.get("mark") or spec.get("encoding"))
# LayerChart: check each sub-layer recursively
# Check if the layer list is empty or all sub-layers are empty
if not spec["layer"]:
return True
# For each sub-layer, check if it's empty by examining its dict directly
library(tidyverse)
library(tidymodels)
library(cowplot)
afrezza_data_GIR <- tibble(
time = c(
3.29696260543123, 10.7000146262981, 13.3128565160158, 15.851045780313,
17.7920140412462, 18.5385402954512, 20.0315928038613, 21.5246453122715,
22.4578031300278, 23.3909609477841, 24.8840134561942, 28.6166447272195,
30.6695919262835, 32.9091706888986, 35.4371800497294, 34.9621178879625,
@damonbayer
damonbayer / brewfile
Last active September 8, 2025 01:20
Damon Bayer's brew file
tap "homebrew/bundle"
tap "r-lib/rig"
brew "atuin"
brew "cloc"
brew "cmake"
brew "docker"
brew "gcc"
brew "gh"
brew "git"
brew "gnupg"