Skip to content

Instantly share code, notes, and snippets.

View d12frosted's full-sized avatar
⚠️
war time

Boris Buliga d12frosted

⚠️
war time
View GitHub Profile
@d12frosted
d12frosted / README.md
Created August 12, 2026 08:41
vui btop restructured: same UI, 2.4x faster via band-level memo components

vui btop, restructured

A follow-up to yibie's vui btop experiment. Same UI, same rendered output (the benchmark asserts byte-identical buffer text), but structured the way a vui app is meant to be structured: per-band :memo components and memoized derived data, so a state change only re-renders the parts that depend on it.

No framework changes, no new helpers: the pure rendering code (parsing, graphs, panel drawing) is reused from the original file.

What changed

  1. The UI is split into three keyed :memo t band components (cpu, lower, footer). A selection change re-renders only the lower band.
  2. The filtered+sorted process list is computed once per render via vui-use-memo (the original sorted it twice per render).
@d12frosted
d12frosted / vulpea-issue-427-test.el
Created July 30, 2026 18:31
Repro test for d12frosted/vulpea#427 (deleted properties/meta removed on sync)
;;; vulpea-issue-427-test.el --- Repro for issue #427 -*- lexical-binding: t; -*-
;;
;;; Commentary:
;;
;; Reproduction steps of https://github.com/d12frosted/vulpea/issues/427
;; as an ERT test, going through the same code path autosync uses in
;; synchronous mode (`vulpea-db-sync--update-file-if-changed').
;;
;; Self-contained on purpose (no project test helpers), so it can run
;; against older checkouts as well: drop it into test/ and run
@d12frosted
d12frosted / alpha-instructions.md
Last active February 17, 2026 12:53
Wix Flow Alpha Program - Participant Guide

Wix Flow Server Alpha Program - Participant Guide

What is this?

You're participating in an alpha test of Wix Flow Server - a curated Claude Code setup designed to make AI-assisted Wix backend development effective out of the box. The setup includes managed instructions (CLAUDE.md), MCP servers for documentation, and skills for common workflows.

We want to understand how well this works on real tasks and where the gaps are.

Setup

@d12frosted
d12frosted / COMPARISON.md
Created January 15, 2026 14:19
json-schema-form.el reimplemented with vui.el (60% less code)

json-schema-form: vui.el vs raw widget.el

This is a reimplementation of whacked's json-schema-form.el gist using vui.el.

Line Count Comparison

Metric Gist (raw widget.el) VUI-based
Total lines 1,127 456
Reduction 60%
12345lovehate
Elvira4.54.54.54.04.514
Vasyl4.74.04.83.94.734
Bohdan4.74.24.53.84.614
Maks4.64.24.84.04.614
Boris4.44.04.53.84.314
Total22.920.923.119.522.7
Mean4.584.184.623.94.54
#!/usr/bin/env bash
set -e
ACTION=$1
emacs_d=$HOME/.config/emacs
if [[ -d "$XDG_CONFIG_HOME" ]]; then
emacs_d="$XDG_CONFIG_HOME/emacs"
fi
(defun vulpea-project-p ()
"Return non-nil if current buffer has any todo entry.
TODO entries marked as done are ignored, meaning the this
function returns nil if current buffer contains only completed
tasks."
(seq-find ; (3)
(lambda (type)
(eq type 'todo))
(org-element-map ; (2)
@d12frosted
d12frosted / migrate_git
Created July 8, 2020 11:59
quick code migration from one repository to another
#!/usr/bin/env bash
#
# Requirements:
#
# 1. git >= 2.25
# 2. git-filter-repo
# 3. bash >= 4.0
#
# Installation:
(defun +org-notes-tags-read ()
"Return list of tags as set in the buffer."
(org-roam--extract-tags-prop (buffer-file-name (buffer-base-buffer))))
(defun +org-notes-tags-delete ()
"Delete a tag from current note."
(interactive)
(unless (+org-notes-buffer-p)
(user-error "Current buffer is not a note"))
(let* ((tags (+org-notes-tags-read))