Skip to content

Instantly share code, notes, and snippets.

View Light2Dark's full-sized avatar

Shahmir Varqha Light2Dark

View GitHub Profile
import marimo
__generated_with = "0.23.4"
app = marimo.App(
width="medium",
layout_file="layouts/nested_slides.slides.json",
)
@app.cell
@Light2Dark
Light2Dark / christmas.css
Created December 17, 2024 14:50
Marimo christmas theme (base)
/* General page styling */
* {
border-color: lightslategray !important; /* Light gray border color */
}
:root {
--background: #e6f7e9; /* Light Christmas green */
}
/* Add the Christmas tree emoji to the left */
@Light2Dark
Light2Dark / compare.py
Created October 7, 2024 02:50
polars helper function to compare dataframes
import polars as pl
def compare(
df_left: pl.DataFrame,
df_right: pl.DataFrame,
keep_rows: bool = False,
keep_cols: bool = False,
keep_equal_values: bool = False,
keep_index: bool = False
) -> pl.DataFrame:
create table orders (
id serial primary key,
created_at timestamptz default now(),
customer_name varchar,
pickup_time timestamptz
);
create type tea_size as enum('regular', 'large');
create type milk_type as enum('dairy', 'oat', 'almond', 'soy');
drop table if exists bubble_tea;
create type milk_type as enum('dairy', 'oat', 'almond', 'soy');
create table bubble_tea (
id serial primary key,
tea_name varchar,
customer_name varchar,
sugar_level int,
ice_level int,
@Light2Dark
Light2Dark / Microsoft.PowerShell_profile.ps1
Last active May 1, 2022 16:28
Microsoft Powershell Settings
oh-my-posh --init --shell pwsh --config C:\Users\User\AppData\Local\Programs\oh-my-posh\themes\powerlevel10k_rainbow.omp.json | Invoke-Expression
# Alias
Set-Alias touch New-Item
Set-Alias grep findstr
Set-Alias less 'C:\Program Files\Git\usr\bin\less.exe'
Set-Alias tig 'C:\Program Files\Git\usr\bin\tig.exe'
set-alias desktop "Desktop.ps1"
# Imports
@Light2Dark
Light2Dark / settings.json
Created May 1, 2022 14:17
VS Code Settings
{
"files.autoSave": "afterDelay",
"workbench.colorTheme": "Eva Dark Italic",
"editor.codeLens": false,
"editor.semanticTokenColorCustomizations": null,
"editor.tokenColorCustomizations": {
"[BeardedTheme Arc]": {
"comments": "#a1e6819d"
},
@Light2Dark
Light2Dark / settings.json
Last active May 1, 2022 11:17
Terminal Settings - Windows
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false