Skip to content

Instantly share code, notes, and snippets.

@ipsod
ipsod / inform_llm_about_backups.py
Last active April 26, 2025 17:15
prompt starter for my backups
#!/usr/bin/env python3
import glob
import os
import sys
from pathlib import Path
try:
from rich.console import Console
from rich.syntax import Syntax
@ipsod
ipsod / gist:d9aec95cdbb44899366f168323edb2f2
Created January 7, 2024 17:48
python trajectory planner WIP
from __future__ import annotations
import enum
from dataclasses import dataclass, field
import pytest # noqa
import numpy as np
from typing import Optional, List, Iterable
NUM_AXES = 3
ZERO = np.array([0] * NUM_AXES)
@ipsod
ipsod / icon_search.py
Last active February 24, 2019 09:53
neovim icon autocompletion work in progress
from functools import lru_cache
import collections
import os
import time
import neovim
from fuzzywuzzy import process
DELAY = .100
DELIMITERS = '()'
ZS = DELIMITERS.encode()[0]