Skip to content

Instantly share code, notes, and snippets.

View codemartial's full-sized avatar

Tahir Hashmi codemartial

View GitHub Profile
@codemartial
codemartial / find-sidecar.el
Created July 23, 2026 01:32
Emacs command to open a file and its side car side-by-side
(defun find-sidecar (file extension)
"Open FILE and its EXTENSION sidecar in adjacent windows.
Prefer an existing window to the left, then one to the right."
;; Usage:
;; M-x find-sidecar RET
;; File: path/to/file.ext RET
;; Sidecar extension: ext2 RET
;;
;; Opens:
@codemartial
codemartial / hello.go
Created August 5, 2026 02:15
A buggy multi-process hello world.
package main
import (
"bufio"
"fmt"
"net/http"
"os"
"sync"
)