Skip to content

Instantly share code, notes, and snippets.

@ajitid
ajitid / successful-prompts-and-other-things.md
Last active March 9, 2026 14:01
[not for public consumption] better ui, better chatgpt

I want you to explore https://blog.jetbrains.com/kotlin/2026/01/the-journey-to-compose-hot-reload-1-0-0/ and anything that you find any concepts that you find you can further explore in the web and help me plan out because right now the way we have hot load implemented the hot load does work but it's not like instant it takes a second or two you can read our code our current code to understand why is that happening and then propose solution of whatever these guys are using these jet brains guys are using if we if it's if it's possible to use it then we probably want to use it in our case as well the same mechanism so we can have a faster hot reload like an instant hot reload any adjustments any breaking changes that we have to do I am okay with that if you have any questions please ask.


implement 01xcaa3f-d7ce-7841-8fe6-83ef644152b5.md . ask questions if any. check web if you want and temp scripts if you need to confirm something. project-to-refer is in path/to/project-to-refer if you n

@ajitid
ajitid / settings.json
Last active February 2, 2026 20:26
claude code config
{
"model": "sonnet",
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh",
"padding": 0
},
"enabledPlugins": {
"rust-analyzer-lsp@claude-plugins-official": true
}
@ajitid
ajitid / README.md
Last active January 13, 2026 10:10
Silverbullet global search

Not queries and Or queries are not supported.

Based on this

search term:       do this `that too`
would search for:  "do" and "this" and "that too"

Folder filter syntax:
 in:visuals/touchdesigner myterm -> search "myterm" in folder "visuals/touchdesigner"
@ajitid
ajitid / main.py
Last active April 21, 2025 17:54
pyopengl + pyopengl-accelerate + pysdl3 + skia-python
import contextlib
import sdl3
import skia
from OpenGL import GL
import ctypes
WIDTH, HEIGHT = 640, 480
WINDOW_TITLE = b"Skia + PySDL3 Example" # SDL requires bytes for titles
@contextlib.contextmanager
@ajitid
ajitid / git.ts
Last active September 26, 2024 08:58
Git copy contents
import { $ } from 'dax-sh'
export const getCommitHashFromTagName = async (
tagName: string,
cwd: string
): Promise<string | null> => {
try {
const v = await $`git rev-list -n 1 ${tagName}`.cwd(cwd).quiet()
return v.stdout.trim()
} catch {
@ajitid
ajitid / README.md
Last active September 18, 2024 00:02
elastic tabstop

Though it is riddled with TypeScript ! operator, it does work...

import os
from subprocess import check_output
from pprint import pprint
from plexapi.server import PlexServer
def process_movie_section(section, plex_media_paths, rclone_mount):
for directory in section.all():
# in case of a movie, this will host a list of files
# which is actually just 1 file, mentioning the movie's location
@ajitid
ajitid / 01-macbook-manual-setup.md
Last active November 28, 2025 17:17
Macbook manual setup

System Settings

Keyboard > Press 🌐 key to "Start dictatation (Press 🌐 twice)" (emojis have fn+e and ctrl+cmd+space)

Keyboard > Text Input > Input Sources > Edit... > disable "Add full stop with double space"

Desktop and Dock > Hot Corners > Bottom right > hold cmd key > choose Desktop

Desktop and Dock > Desktop & Stage Manager > Click wallpaper to reveal desktop > disable it

@ajitid
ajitid / main.js
Last active April 28, 2023 10:31
Understanding `this`
"use strict";
// using strict mode as `this` behavior can change in a non-strict JS https://egghead.io/lessons/javascript-this-in-function-calls
// ESM files use `"use strict";` by default
// -------------
// Let's see what top level `this` is in different environments
/*
in browsers
@ajitid
ajitid / simpler-wait-forever.go
Last active March 29, 2023 20:53
Wait forever so that your goroutines can finish in Golang
/*
NOT TO BE USED IN PRODUCTION
Lets you wait forever so that your goroutines can finish.
Works great when coupled with [watchexec](https://watchexec.github.io/) like `watchexec -rc go run .` while learning Go.
src: https://stackoverflow.com/questions/36419054/go-projects-main-goroutine-sleep-forever#comment132984686_36419288
Should be used like: