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
#!/usr/bin/env -S uv run --script | |
# /// script | |
# requires-python = ">=3.13" | |
# dependencies = [ | |
# "fire", | |
# ] | |
# /// | |
# pyright: reportMissingModuleSource=false | |
# pyright: reportMissingImports=false |
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
#!/usr/bin/env -S uv run --script | |
# /// script | |
# requires-python = ">=3.13" | |
# dependencies = [ | |
# "beautifulsoup4", | |
# "requests", | |
# "icalendar" | |
# ] | |
# /// | |
# pyright: reportMissingModuleSource=false |
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
# /// script | |
# dependencies = [ | |
# "fire", | |
# "polars", | |
# "garmin-fit-sdk", | |
# ] | |
# /// | |
from __future__ import annotations | |
import logging |
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
# /// script | |
# dependencies = [ | |
# "fire", | |
# "polars", | |
# "rich", | |
# "redshift_connector", | |
# ] | |
# /// | |
import json |
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
{ | |
"config": { | |
"text": { | |
"color": "gray", | |
"fontSize": 14 | |
}, | |
"title": { | |
"anchor": "middle", | |
"fontWeight": "normal", | |
"titleFontWeight": "normal", |
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
``` | |
{ | |
"$schema": "https://vega.github.io/schema/vega/v5.json", | |
"background": "white", | |
"padding": 5, | |
"width": 480, | |
"data": [ | |
{ | |
"name": "brush_store" | |
}, |
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
year | day | color | count | |
---|---|---|---|---|
2015 | 25 | gold | 6695 | |
2015 | 25 | silver | 2534 | |
2015 | 24 | gold | 7727 | |
2015 | 24 | silver | 105 | |
2015 | 23 | gold | 8999 | |
2015 | 23 | silver | 44 | |
2015 | 22 | gold | 7378 | |
2015 | 22 | silver | 199 | |
2015 | 21 | gold | 9662 |
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 numpy as np | |
import matplotlib.pyplot as plt | |
from cycler import cycler | |
import matplotlib.patheffects as path_effects | |
# %% | |
np.random.seed(1) | |
n, m = 200, 6 | |
x = np.arange(n) |
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 polars as pl | |
def drop_columns_that_are_all_null(_df: pl.DataFrame) -> pl.DataFrame: | |
return _df[[s.name for s in _df if not (s.null_count() == _df.height)]] | |
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
{ | |
"$schema": "https://vega.github.io/schema/vega/v5.json", | |
"background": "white", | |
"padding": 5, | |
"title": {"anchor": "middle", "text": "World Record Progression"}, | |
"data": [ | |
{"name": "param_13_store"}, | |
{"name": "param_14_store"}, | |
{ | |
"name": "data-f0a84751744be4555114288140dc4b49", |
NewerOlder