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 / 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 4, 2024 06:46
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.
@vedang
vedang / keybase.md
Last active August 29, 2015 14:07
Keybase Verification

Keybase proof

I hereby claim:

  • I am vedang on github.
  • I am vedang (https://keybase.io/vedang) on keybase.
  • I have a public key whose fingerprint is 64C0 579D EA73 EADC B9FE DD2D 02C8 3321 60B8 648C

To claim this, I am signing this object:

@vedang
vedang / uniquify-recentf.el
Created January 27, 2014 08:59
Implements functionality similar to `uniquify' to make `recentf' results bearable.
(require 'recentf)
;; Implement functionality similar to uniquify to make recentf results bearable
;; Requires s.el and dash.el - awesome libraries from Magnar Sveen
;; Hat-tip : Baishampayan Ghose for the clojure implementation at
;; https://gist.github.com/ghoseb/8432086
(require 's)
(require 'dash)