Skip to content

Instantly share code, notes, and snippets.

View NostraDavid's full-sized avatar
🏠
Working from home

NostraDavid NostraDavid

🏠
Working from home
View GitHub Profile
@NostraDavid
NostraDavid / pde.md
Created September 19, 2024 09:56
Pythonic Data Engineer (GitHub)

Pythonic Data Engineering Style Guide

The Essence of Style

Our coding style is a collective effort, blending engineering and art, aiming for precision and creativity. The best is yet to come.

Why Have Style?

Good style advances our design goals: readability, maintainability, performance,

@NostraDavid
NostraDavid / .wezterm.lua
Created October 5, 2024 10:21
Default Windows wezterm.lua
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
-- Set font to JetBrains Mono NF
config.font = wezterm.font('JetBrainsMono Nerd Font')
config.font_size = 10
@NostraDavid
NostraDavid / process_better.py
Created November 19, 2024 17:00
Polars > Spark, for small (sub 200GB) datasets
# /// script
# requires-python = ">=3.13"
# dependencies = [
# "polars",
# ]
# ///
from pathlib import Path
from typing import OrderedDict
import polars as pl
@NostraDavid
NostraDavid / starship.toml
Last active March 22, 2025 15:54
~/.config/starship.toml - based on powerline-status + powerline-gitstatus
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# `prev_bg` is a special variable that sets the background color to the previous
# module's background color, which is useful for creating a seamless transition between
# modules. For example, you can use it to create a seamless transition between the
# `directory` and `git_branch` modules.
# You can also override fg and bg colors for each module. `fg:prev_bg fg:light_bg` means
# that the foreground color is the previous module's background color, but if there is