Skip to content

Instantly share code, notes, and snippets.

View liquidcarbon's full-sized avatar
🙃

Alexander Kislukhin liquidcarbon

🙃
  • Colorful Colorado
View GitHub Profile
@liquidcarbon
liquidcarbon / single_div.py
Last active December 24, 2024 05:00
SingleDivMarimo
import marimo
__generated_with = "0.10.7"
app = marimo.App(width="medium")
@app.cell
def _(div, mo, result, run_button, style1, style2, style3, style_editors):
if run_button.value:
result[0] = div.render(style1.value, style2.value, style3.value)
@liquidcarbon
liquidcarbon / svg_css_animation.svg
Last active July 10, 2025 14:51
SVG with CSS animation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@liquidcarbon
liquidcarbon / groupby_stats.py
Created October 22, 2025 22:03
groupby-stats - custom "describe" for pandas dataframe groupby
import numpy as np
import pandas as pd
def stats(self, cols, funcs=None):
"""
Like describe(), but allows custom stats and outputs flat columns like 'x-50', 'x-mean', etc.
Parameters
----------
cols : list | None