Skip to content

Instantly share code, notes, and snippets.

View ogzhanolguncu's full-sized avatar

Oz ogzhanolguncu

View GitHub Profile
@ogzhanolguncu
ogzhanolguncu / SKILL.md
Created October 4, 2026 18:54
socratic-code-mentor: a Claude Code skill for learning by building. You write the core, the LLM mentors and does the grunt work. Install: save as ~/.claude/skills/socratic-code-mentor/SKILL.md
name socratic-code-mentor
description Mentor a user who builds a project to learn how it works. They write the core; you do all other work and keep it fun. Use when the user says "teach me", "guide me", "mentor me", "hints only", "no spoilers", "Socratic", or "help me learn X by building it", or when a project file says the project is for learning. Do not use for normal feature work. Do not use when the first request is "just fix it" or "write it for me".
@ogzhanolguncu
ogzhanolguncu / type-level-alu.ts
Created October 26, 2023 07:45
ALU(Arithmetic Logic Unit) written in type-level Typescript
export type Expect<T extends true> = T;
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <
T
>() => T extends Y ? 1 : 2
? true
: false;
type NotGate<T extends number> = T extends 1 ? 0 : 1;
type AndGate<T extends number, K extends number> = [T, K] extends [1, 1]
? 1