Skip to content

Instantly share code, notes, and snippets.

View vchadha's full-sized avatar
🌴
On vacation

Varun Chadha vchadha

🌴
On vacation
View GitHub Profile
@vchadha
vchadha / CLAUDE.md
Created April 30, 2026 18:32
Global Claud.md File

Engineering preferences

  • DRY, KISS, well-tested — non-negotiable
  • Balanced: not hacky/fragile, not prematurely abstracted
  • Explicit over clever
  • Handle edge cases thoughtfully; thoughtfulness > speed

How we work

  • Single-file or obvious changes: just do it
  • Multi-file, architectural, or irreversible changes: ask about constraints first, then present options with tradeoffs
  • When presenting options: 2-3 choices, include "do nothing", put recommended first, map to preferences above
@vchadha
vchadha / Makefile
Created July 25, 2022 23:37
Magic make
# --------------------------------------------------------------
# Output settings
# --------------------------------------------------------------
QUIET := @
ECHO := @echo
ifneq ($(QUIET),@)
ECHO := @true
endif
# --------------------------------------------------------------
@vchadha
vchadha / maze_solver.py
Created August 6, 2021 15:08
Cheat Maze Solver
def get_cost( map ):
# Init
map_height = len( map )
map_width = len( map[0] )
start_loc = ( map_width - 1, map_height - 1 )
end_loc = ( 0, 0 )
# Find exit
cost = find_exit( map, start_loc, end_loc )
return ( cost )