This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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", []) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tap "homebrew/bundle" | |
| tap "r-lib/rig" | |
| brew "atuin" | |
| brew "cloc" | |
| brew "cmake" | |
| brew "docker" | |
| brew "gcc" | |
| brew "gh" | |
| brew "git" | |
| brew "gnupg" |