Small scripts I use in day-to-day work, plus a TypeScript workspace where I practise algorithms and type-level programming.
Standalone, standard-library scripts. Each folder has its own README.
| Script | What it does |
|---|---|
generateChangelog |
Reads a repo's git log, finds conventional commits (including ones listed inside squash-merge messages) and writes a CHANGELOG.md that links each entry to its commit. |
quickStringReplace |
Replaces every occurrence of one string with another in a file. |
code-dot-org/cleanFacilitatorBios |
Strips the name heading and email line from Code.org facilitator bio files in a folder. |
python3 python/generateChangelog/generate_changelog.py --depth 1000 --repo code-dot-org/code-dot-orgtypescript/ is a practice workspace, not a published package.
| Area | Implementations |
|---|---|
| Array search | binarySearch, recursiveBinarySearch |
| Array sort | quickSort, selectionSort |
| Graph search | breadthFirstSearch, dijkstraAlgorithm |
| Greedy | getGreedySetCover (set cover), getOptimalRoomSchedule (interval scheduling), packBackpack |
| Dynamic programming | packBackpack (0/1 knapsack) |
LinkedList/ListNode
Type utilities in typescript/types, each with compile-time tests
(Expect<Equals<…>>) next to it:
- Conditional types:
Equals,If,IsEven,IsNumber,IsString - Generic types:
ObjectValues,Optional,Pair - Utils:
Expect,Not,AnyArray
cd typescript
yarn install