Skip to content

Instantly share code, notes, and snippets.

View tlkahn's full-sized avatar

Wingk tlkahn

View GitHub Profile
@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."
set nocompatible
syntax on
set number
set relativenumber
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set hlsearch
set incsearch
@tlkahn
tlkahn / toy_word2vec.py
Created February 2, 2025 03:16
toyword2vec
# -*- coding: utf-8 -*-
"""toy-word2vec.ipynb
Automatically generated by Colab.
Original file is located at
https://colab.research.google.com/drive/1Lk3Td9MXzndT0ld1iaCF6FbggKCzBa2Z
"""
import jax
@tlkahn
tlkahn / a.md
Created January 31, 2025 12:53
dealing with bad code

user:

found the source code of many AI papers hard to read, partially because the authors are not in the mindset of software engineers, therefore the code is not aligned to software engineering best practices. How to solve this problem? I want to understand the code so that I can master the concetps in the papers more thourougly through code reading

assistant:

Reading and fully understanding research code can be challenging, especially when code bases don’t follow traditional software engineering (SE) best practices. Here are some suggestions for getting more out of (often messy) AI research code:

  1. Organize the Context Before Diving In • Read the paper thoroughly. Make note of the key steps in the algorithm, the architectural components, and the logic flow. Then map these steps to the filenames, modules, and functions you see in the code.