Skip to content

Instantly share code, notes, and snippets.

@ikouchiha47
ikouchiha47 / 01_QUESTION.md
Last active December 22, 2025 09:16
Ride Hailer

DAW Problem Statement – Multi-Region Ride-Hailing Platform

Context

You are tasked with designing a multi-tenant, multi-region ride-hailing system (think Uber/Ola).

The platform must handle driver–rider matching, dynamic surge pricing, trip lifecycle management, and payments at scale with strict latency requirements.

@ikouchiha47
ikouchiha47 / 01_context.md
Last active November 29, 2025 06:17
AI Coding Won

This blog was written by claude using kiro , There are errors in the blog, but I want it to be a testament to stupid the ecosystem is for anything real.

The future is so bad, that I am positively hopeful. Such a beautiful sight seeing everything burn.

@ikouchiha47
ikouchiha47 / coding_agent.md
Created October 24, 2025 10:41
coding agent

AI Agent Development & Debugging Guide

1. Development Cycle

Test-Driven Development (TDD) Workflow

Phase 1: Write Tests First

Write a failing test that defines the expected behavior before implementing any code.

from fontTools.ttLib import TTFont
import os
def rename_font_family(input_path, output_path, old_family="M+1", new_family="M+11"):
font = TTFont(input_path)
name_table = font["name"]
print(name_table)
@ikouchiha47
ikouchiha47 / threadpoolglobal.py
Last active January 2, 2025 05:39
Python synchronise work between threads
import threading
from concurrent.futures import ThreadPoolExecutor, as_completed
from functools import wraps
# Global thread pool
thread_pool = ThreadPoolExecutor(max_workers=10)
workernames = list("abcdefghijklmnopqrstuvwxyz")
def submit_to_thread_pool(func):
@ikouchiha47
ikouchiha47 / fiber.zig
Last active November 12, 2024 11:09
WIP fiber
// Implements:
// fibers as lightweight concurrency control
//
// Source:
// https://cyp.sh/blog/coroutines-in-c
// https://agraphicsguynotes.com/posts/fiber_in_cpp_understanding_the_basics/
// https://github.com/SuperAuguste/oatz/blob/main/impls/aarch64.zig
// https://raw.githubusercontent.com/wiki/hjl-tools/x86-psABI/x86-64-psABI-1.0.pdf
const std = @import("std");
@ikouchiha47
ikouchiha47 / wezterm.lua
Last active October 17, 2024 02:29
wezterm
local wezterm = require("wezterm")
local act = wezterm.action
-- This will hold the configuration.
local config = wezterm.config_builder()
-- load my other fonts
-- config.font_dirs = { "/home/darksied/.local/share/fonts/" }
-- config.color_scheme = "rose-pine"
@ikouchiha47
ikouchiha47 / what-forces-layout.md
Created September 14, 2024 15:24 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@ikouchiha47
ikouchiha47 / Makefile
Last active December 25, 2025 23:56
LLM (llama3) powered test generator in neovim
gen.model.tester:
ollama create llama3-coder -f Modelfile
ollama run llama3-coder < /dev/null
cache.model.tester:
ollama run llama3-coder < /dev/null
@ikouchiha47
ikouchiha47 / cli.js
Last active July 10, 2024 09:41
Suck'em ratings
const { GoogleResults, BingResults, DDGResults } = require('./sniffratings');
function parseArguments(args) {
const argsMap = {};
let currentKey = null;
for (let i = 2; i < args.length; i++) {
const arg = args[i];
if (arg.startsWith('-')) {