Skip to content
levadadenysPublic

About

Everyday Python scripts and a TypeScript workspace for algorithms and type-level programming.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

helpers

Small scripts I use in day-to-day work, plus a TypeScript workspace where I practise algorithms and type-level programming.

Python scripts

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-org

TypeScript

typescript/ is a practice workspace, not a published package.

Algorithms

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)

Data structures

  • LinkedList / ListNode

Type-level utilities

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

Setup

cd typescript
yarn install

About

Everyday Python scripts and a TypeScript workspace for algorithms and type-level programming.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages