Skip to content

Instantly share code, notes, and snippets.

View tlkahn's full-sized avatar

Wingk tlkahn

View GitHub Profile
@tlkahn
tlkahn / pi-scroll-follow-patch
Last active October 10, 2026 03:50
pi local patch: keep fullscreen transcript scroll position on layout changes (#10556)
#!/usr/bin/env python3
"""Re-apply the ScrollView follow-clamp fix to an installed pi.
Upstream rejected the fix (issue #10556), so this keeps the local patch in place
across `pi update`.
The fix removes `ScrollView.updateLayout`'s geometry-based re-enable of
follow-end. Before, a non-following view that happened to sit at the new content
end after any layout change (a tool card above the viewport collapsing, the dock
shrinking when the streaming status clears) silently resumed following, so the
@tlkahn
tlkahn / puml1.svg
Created September 2, 2026 14:43
plantuml from rust-godot-engine-architecture.md
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tlkahn
tlkahn / puml1.svg
Created September 2, 2026 14:35
plantuml diagrams
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tlkahn
tlkahn / puml1.svg
Created September 1, 2026 23:41
plantuml from stream-demo.md
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tlkahn
tlkahn / puml1.svg
Created August 31, 2026 06:54
plantuml from inventory-bootstrap-ideation.md
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tlkahn
tlkahn / puml1.svg
Created August 31, 2026 06:40
plantuml from inventory-bootstrap-ideation.md
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tlkahn
tlkahn / puml1.svg
Created August 31, 2026 02:11
plantuml from plantuml-gist-test.md
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tlkahn
tlkahn / README.md
Created August 30, 2026 07:43
vaultsync issue #30 smoke test: IgnoreSet vs real [ignore].patterns from ~/.config/vaultsync/config.toml (all 25 cases pass)

vaultsync ignore matcher - real config smoke test (issue #30)

Throwaway verification that IgnoreSet (pure matcher, src/ignore.rs) behaves correctly against the real [ignore].patterns used by the Ekuro vault (~/.config/vaultsync/config.toml), run against the ignoreset-matcher-pure-pattern-language worktree via a temporary integration test.

Run: cargo test --offline --test smoke_real_config -> 1 test, 25 cases, all PASS.

@tlkahn
tlkahn / a.md
Created June 27, 2025 01:11
a.md

The route definition

post "/sandhi/analyze", to: "sandhi_analyses#analyze"

automatically includes an optional :format segment, so both

/sandhi/analyze      # no explicit format
/sandhi/analyze.json # JSON extension

match the same sandhi_analyses#analyze action.

@tlkahn
tlkahn / askgpt.el
Created April 7, 2025 05:52
My emacs copilot
(defun insert-json-entries (json-str)
(let ((json-object-type 'hash-table))
(cl-loop for entry across (json-read-from-string json-str) do
(maphash (lambda (key value)
(insert (format (if (string= key "role") "## %s:\n\n" "%s\n\n")
(string-trim value "[ \t\n\r.]+"))))
entry))))
(defun ask-for-input ()
"Prompt the user for input using the minibuffer."