Skip to content

Instantly share code, notes, and snippets.

View codebynumbers's full-sized avatar

Rob Harrigan codebynumbers

View GitHub Profile
@khalidx
khalidx / node-typescript-esm.md
Last active March 6, 2026 02:32
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json

@thiagozs
thiagozs / openrtb-iab-category.md
Created September 27, 2013 17:30
IAB OpenRTB Category

###IAB1 Arts & Entertainment IAB1-1 Books & Literature
IAB1-2 Celebrity Fan/Gossip
IAB1-3 Fine Art
IAB1-4 Humor
IAB1-5 Movies
IAB1-6 Music
IAB1-7 Television

###IAB2 Automotive

@codebynumbers
codebynumbers / time-dilater.py
Created August 8, 2013 00:41
Convert a string like '0,1,2,10 - 12, 20-23' into '0,1,2,10,11,12,20,21,22,23'
def conv(ts):
results = Set([])
parts = ts.split(",")
for part in parts:
if "-" not in part:
results.add(int(part.strip()))
else:
(s, e) = part.split("-")
for i in range(int(s.strip()), int(e.strip()) + 1):
results.add(i)
@l15n
l15n / git-branches-by-commit-date.sh
Created July 13, 2012 08:47 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit's author and author date for each branch. Sort by most recent commit's author date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r