Skip to content

Instantly share code, notes, and snippets.

View kriskowal's full-sized avatar

Kris Kowal kriskowal

View GitHub Profile
function *count(n) {
for (let i = 0; i < n; i++) {
yield i;
}
}
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
const asyncForEach = async (values, callback) => {
20 points above the monkey
A Dearth of Crosswalks (via ahuster)
Angry Brain Explosion (via fudco)
Anonymous
Apparently Music? (via ahuster)
Awsomosis
Bad Math
Banned Name (via ahuster)
Bdemonic Devices
Betrayed by the Bagel (via ahuster)
@kriskowal
kriskowal / potter.md
Last active August 14, 2021 19:20
On the incompetence of Albus
anonymous
anonymous / Horses Ponies Wagons and Carts
Created January 10, 2013 22:11
Horses, Ponies, Wagons and Carts by NWRinger2
HORSES AND PONIES and WAGONS n CARTS:
By Deb White, Seattle, [NWRinger]
Can horses swim the Brandywine?
The Fellowship of the Ring, 112 the question of whether or not horses can cross the Brandywine River comes up at Buckleberry Ferry. We know that at least 1 hobbit pony can ride the ferry, as Merry takes his across on it when he searches for Frodo who is late to arrive; but there doesn’t seem to be an ability for them, either ponies or horses, to swim it at this point, they must go up to the Bridge or down to Sarn Ford, as Merry’s response to Frodo is: “Can horses cross the river?”
“They can go twenty miles north to Brandywine Bridge - or they might swim,” answered Merry, “Though I never heard of any horse swimming the Brandywine.”
HORSES N PONIES BY NAME, or if no name given, listed by Rider’s name:
@kriskowal
kriskowal / The Hobbit.md
Created November 28, 2011 20:27
My notes from a close read of The Hobbit.

Thorin’s company in order of appearance at the Unexpected Party. (p8-11)

  • Dwalin (p8)
    • blue beard
    • gold belt
    • dark green hood
    • bright eyes
    • had tea and three cakes
  • plays a viol as big as himself (p14)
using System;
namespace Pastebin
{
class Pbcopy
{
[STAThread]
static void Main(string[] args)
{
try
# generate crazy mixed version, and sort them dewey decimal
echo {11,1}.{11,1}.{11,1}.{11,1} | xargs -n 1 \
| awk 'BEGIN{FS="."}{print $4, $1, $2, $3}' \
| sort -ns \
| awk '{print $4, $1, $2, $3}' \
| sort -ns \
| awk '{print $4, $1, $2, $3}' \
| sort -ns \
| awk '{print $4, $1, $2, $3}' \
| sort -ns \