Skip to content

Instantly share code, notes, and snippets.

View budhash's full-sized avatar

Budhaditya budhash

  • San Francisco Bay Area
View GitHub Profile
@budhash
budhash / NapkinTax.py
Created November 10, 2023 06:16
NapkinTax
import json
class Income:
def __init__(self):
self.income_sources = {}
def add(self, source, amount):
"""Add income to the total, categorizing by source."""
self.income_sources[source] = self.income_sources.get(source, 0) + amount
@budhash
budhash / json.awk
Created July 1, 2025 22:24 — forked from mohd-akram/json.awk
Extract a value from a JSON object or array in awk
#
# Extract a JSON value in an object:
#
# items = get_json_value(json, "payload.tree.items")
#
# Or in an array:
#
# while ((item = get_json_value(items, i++)))
# name = decode_json_string(get_json_value(item, "name"))
#

Building Claude Code from Source

Step-by-step guide for building the Claude Code CLI from the alesha-pro/claude-code repository — leaked Anthropic Claude Code source code.

Requirements

  • Linux (Ubuntu 22.04+) or macOS
  • 4GB RAM, 4 CPU cores, 30GB disk
  • Bun >= 1.3
  • Git