Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// "broken slow cut 1" @by froos remixed by zitterbewegung
// @version 1.0.1
samples('github:tidalcycles/dirt-samples')
samples({
'slap': 'https://cdn.freesound.org/previews/495/495416_10350281-lq.mp3',
'whirl': 'https://cdn.freesound.org/previews/495/495313_10350281-lq.mp3',
'attack': 'https://cdn.freesound.org/previews/494/494947_10350281-lq.mp3'
})
@zitterbewegung
zitterbewegung / changelog-mar-16-30.md
Last active March 30, 2026 14:33
Sitch Globe — Detailed Changelog Mar 16–30, 2026

Detailed Changelog: March 16–30, 2026

244 commits | 15 consecutive days | 213 files changed | +29,506 / -9,234 lines | 52 new test files

Type Count
Bug fixes 154
Features 49
Performance 17
Tests 5
(venv) # Exit:0 2023-03-12 16:59:27 [r2q2@Reformer#[:~/opt/llama.cpp]
$(: !605 ) ./main -m ./models/65B/ggml-model-q4_0.bin -t 8 -n 128
main: seed = 1678658429
llama_model_load: loading model from './models/65B/ggml-model-q4_0.bin' - please wait ...
llama_model_load: n_vocab = 32000
llama_model_load: n_ctx = 512
llama_model_load: n_embd = 8192
llama_model_load: n_mult = 256
llama_model_load: n_head = 64
llama_model_load: n_layer = 80
@zitterbewegung
zitterbewegung / deploy-inky-app-uv-py310.sh
Last active August 23, 2025 20:18
Psychic Paper Install
#!/usr/bin/env bash
set -euo pipefail
# ============================================
# Config
# ============================================
APP_USER="${APP_USER:-${SUDO_USER:-pi}}"
APP_GROUP="${APP_GROUP:-${APP_USER}}"
HOME_DIR="$(getent passwd "${APP_USER}" | cut -d: -f6)"
APP_DIR="${APP_DIR:-${HOME_DIR}/inky-app}"
@zitterbewegung
zitterbewegung / Guide
Last active August 23, 2025 16:45
Psychic Paper Quickstart.
# 1) Copy your files to the Pi (adjust path/host as needed)
# Put setup-inky-app.sh, main.py, requirements-2.txt in the same folder.
# From your local machine:
# scp setup-inky-app.sh main.py requirements-2.txt pi@raspberrypi.local:/home/pi/
# 2) SSH into the Pi:
# ssh pi@raspberrypi.local
# 3) Run the setup (as root):
sudo bash ./setup-inky-app.sh
@zitterbewegung
zitterbewegung / Saturday.py
Last active March 24, 2025 23:42
Source code for vocal assistant.
#!/usr/bin/env python3
from transformers import pipeline
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
import os
import time
import speech_recognition as sr
import pyttsx3
from deepsearcher.configuration import Configuration, init_config
from deepsearcher.online_query import query
config = Configuration()
# Customize your config here,
# more configuration see the Configuration Details section below.
config.set_provider_config("llm", "OpenAI", {"model": "gpt-4o-mini"})
#config.set_provider_config("embedding", "OpenAIEmbedding", {"model", "text-embedding-ada-002"})
config.set_provider_config("embedding", "MilvusEmbedding", {"model": "jina-embeddings-v3"})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zitterbewegung
zitterbewegung / main_formatted.ts
Last active November 19, 2024 19:33
OpenAI Deno Vision Tutorial
import OpenAI from "npm:openai";
const openai = new OpenAI();
import { encode } from "https://deno.land/std@0.206.0/encoding/base64.ts";
async function main() {
// Ensure a file path argument is provided
if (Deno.args.length === 0) {
console.error("Usage: deno run --allow-read script.ts <image-file-path>");
Deno.exit(1);
}