Skip to content

Instantly share code, notes, and snippets.

View vedang's full-sized avatar
🐢
Slow and steady

Vedang Manerikar vedang

🐢
Slow and steady
View GitHub Profile
@vedang
vedang / code_review.md
Created November 14, 2025 06:36
Review Code using an LLM

Please perform a comprehensive code review of this diff file. Analyze the changes for:

  1. Potential bugs, edge cases, or logic errors
  2. Security vulnerabilities or performance issues
  3. Adherence to best practices and design patterns
  4. Code readability and maintainability
  5. Completeness of implementation
  6. Suggestions for improvements or alternative approaches

For each issue found, please explain:

@vedang
vedang / SketchSystems.spec
Last active July 25, 2025 04:53
FastAPI Server Lifecycle
FastAPI Server Lifecycle
Idle
start server -> Starting
Starting
initialize observability -> Observability Setup
startup error -> Error
Observability Setup
@vedang
vedang / clj-devtooling-inclojure2024.org
Created March 27, 2024 17:49
Slides for In/Clojure 2024 talk: Clojure Developer Tooling for Speed and Productivity

title: Clojure Developer Tooling for Speed and Productivity in 2024

Why this talk?

So you’ll show me your cool workflows! (help me get better!)

I want to write a new library or application!

# Reconstructed via infocmp from file: /usr/share/terminfo/t/tmux-256color
tmux-256color|tmux with 256 colors,
OTbs, OTpt, am, hs, km, mir, msgr, xenl, AX, G0,
colors#256, cols#80, it#8, lines#24, pairs#32767, U8#1,
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
@vedang
vedang / run-git-fetch.sh
Created March 31, 2022 13:57
Run git fetch and merge on all repos inside a directory.
#! /bin/bash
# find . -maxdepth 1 -type d \( ! -name . \) -print0 | xargs -0 -L1 ~/Tresors/Documents/private-dotfiles/scripts/run-git-fetch.sh
fetch_file=".git-fetch"
debug_mode="false"
master_branch="main"
echo "[git-fetch-dir] Working in $1"
cd "$1" || exit
@vedang
vedang / scroll-other-window.el
Last active May 29, 2021 15:02 — forked from politza/scroll-other-window.el
scroll-other-window.el
;;; scroll-other-window.el --- Variable commands for scrolling the other window.
;; Copyright (C) 2016 Andreas Politz
;; Author: Andreas Politz <[email protected]>
;; Keywords: extensions, frames
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
@vedang
vedang / hey_notmuch!
Last active August 5, 2025 06:48
Notmuch configuration for Hey.com Style workflows.
- Specific Notmuch filters (and saved-searches) for:
+ The Feed (newsletters, blogs)
+ The Paper trail (receipts, ledger)
+ Screened Inbox (mail from folks you actually want to read)
+ Previously Seen (important mail that you've already read)
+ Unscreened Inbox (potential spam / stuff you don't want)
- Elisp Functions to move / categorize emails from a particular sender.
+ Adds tags needed by filters defined above to all email sent by a particular sender
+ Creates an entry in a DB file, which is used by the Notmuch post-new script when indexing new email, to auto-add the relevant tags.
@vedang
vedang / game_of_life.clj
Created November 16, 2019 13:41
Conway's game of life
(ns game-of-life
(:require [clojure.set :as cs]))
(defn calculate-neighbour-coordinates*
[[x y]]
(->> (vector [(+ x 1) y]
[(- x 1) y]
[x (+ y 1)]
[x (- y 1)]
[(+ x 1) (+ y 1)]
@vedang
vedang / run-git-fetch.sh
Last active November 8, 2019 06:48
A small shell script to fetch code from git upstreams in all directories
#! /bin/bash
# find . -maxdepth 1 -type d \( ! -name . \) -print0 | xargs -0 -L1 /path/to/run-git-fetch.sh
fetch_file=".git-fetch"
echo "Working in $1"
cd "$1" || exit
fetch_upstream_and_merge()
@vedang
vedang / psk.clj
Last active May 11, 2020 03:12
A Clojure simulation of the Passport Seva Kendra
(ns challenges.psk
"A Simulation of the Passport Seva Kendra"
(:require [clj-time.core :as ct]
[clojure.tools.logging :as ctl])
(:import [java.util.concurrent LinkedBlockingQueue PriorityBlockingQueue]))
(def working-hours? (atom false)) ; use this to control agents.
; Turning this off will
; shutdown agents.