Skip to content

Instantly share code, notes, and snippets.

@bwhitman
bwhitman / gist:5654452
Created May 26, 2013 23:36
Opening lines of "Pale Fire"
I was the shadow of the waxwing slain
By the false azure in the windowpane;
I was the smudge of ashen fluff - and I
Lived on, flew on, in the reflected sky.
And from the inside, too, I'd duplicate
Myself, my lamp, an apple on a plate:
Uncurtaining the night, I'd let dark glass
Hang all the furniture above the grass,
And how delightful when a fall of snow
Covered my glimpse of lawn and reached up so
@bwhitman
bwhitman / churches.md
Created January 14, 2013 16:21
City of Churches by Donald Barthelme

"Yes," Mr. Phillips said, "ours is a city of churches all right." Cecelia nodded, following his pointing hand. Both sides of the street were solidly lined with churches, standing shoulder to shoulder in a variety of architectural styles. The Bethel Baptist stood next to the Holy Messiah Free Baptist, Saint Paul's Episcopal next to Grace Evangelical Covenant. Then came the First Christian Science, the Church of God, All Souls, Our Lady of Victory, the Society of Friends, The Assembly of God, and the Church of the Holy Apostles. The spires and steeples of the traditional buildings were jammed in next to the broad imaginative flights of the "contemporary" designs. "Everyone here takes a great interest in church matters," Mr. Phillips said.

Will I fit in, Cecelia wondered. She had come to Prester to open a branch office of a car-rental concern.

"I'm not especially religious," she said to Mr. Phillips, who was in the real-estate business.

"Not now," he answered.

"Not yet. But we have many fine young people her

@bwhitman
bwhitman / gist:5229410
Last active December 12, 2022 15:17
Sleep by Haruki Murakami

Sleep

by Haruki Murakami

This is my seventeenth straight day without sleep.

I’m not talking about insomnia. I know what insomnia is. I had something like it in college―something like it because I’m not sure that what I had then was exactly the same as what people refer to as insomnia. I suppose a doctor could have told me. But I didn’t see a doctor. I knew it wouldn’t do any good. Not that I had any reason to think so. Call it woman’s intuition―I just felt they couldn’t help me. So I didn’t see a doctor, and I didn’t say anything to my parents or friends, because I knew that that was exactly what they would tell me to do.

Back then, my “something like insomnia” went on for a month. I never really got to sleep that entire time. I’d go to bed at night and say to myself, “All right now, time for some sleep.” That was all it took to wake me up. It was instantaneous - like a conditioned reflex. The harder I worked at sleeping, the wider awake I became. I tried alcohol, I tried sleeping pills, but they had abso

@bwhitman
bwhitman / salami.py
Created May 1, 2014 14:56
SALAMI chord parser
#!/usr/bin/env python
# encoding: utf-8
"""
salami.py
Brian Whitman
brian@echonest.com
"""
@bwhitman
bwhitman / msd.txt
Created January 2, 2015 01:33
Attachment instructions for the MSD
The toughest part was getting access to an EC2 instance. I followed
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html#access-ec2
To set up the aws command line interface, I followed
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html
-> http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html
-> http://docs.aws.amazon.com/cli/latest/userguide/installing.html#install-bundle-other-os
(for my MacBook)
-> http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html
I don't recall how I set up the public/private key pair, but it wasn't
@bwhitman
bwhitman / picblast.sh
Created May 8, 2017 21:30
Make an audio collage out of your live photos
mkdir /tmp/picblast; cd ~/Pictures/Photos\ Library.photoslibrary; for i in `find . | grep jpegvideocompl`;do ffmpeg -i $i /tmp/picblast/${i:(-8)}.wav; done; cd /tmp/picblast; ffmpeg -safe 0 -f concat -i <( for f in *.wav; do echo "file '$(pwd)/$f'"; done ) ~/Desktop/picblast.wav; rm -rf /tmp/picblast
@bwhitman
bwhitman / gist:3185350
Created July 27, 2012 00:16
The Library of Babel by Jorge Luis Borges

By this art you may contemplate the variations of the 23 letters...

--The Anatomy of Melancholy, part 2, sect. II, mem. IV

The universe (which others call the Library) is composed of an indefinite and perhaps infinite number of hexagonal galleries, with vast air shafts between, surrounded by very low railings. From any of the hexagons one can see, interminably, the upper and lower floors. The distribution of the galleries is invariable. Twenty shelves, five long shelves per side, cover all the sides except two; their height, which is the distance from floor to ceiling, scarcely exceeds that of a normal bookcase. One of the free sides leads to a narrow hallway which opens onto another gallery, identical to the first and to all the rest. To the left and right of the hallway there are two very small closets. In the first, one may sleep standing up; in the other, satisfy one's fecal necessities. Also through here passes a spiral stairway, which sinks abysmally and soars upwards to remote distances. In the h

Verifying my Blockstack ID is secured with the address 1G86FSKc8eYLDzKbTBmgWXWBFBmgJ5BrKG https://explorer.blockstack.org/address/1G86FSKc8eYLDzKbTBmgWXWBFBmgJ5BrKG
@bwhitman
bwhitman / keybase.md
Created May 16, 2017 13:20
keybase.md

Keybase proof

I hereby claim:

  • I am bwhitman on github.
  • I am bwhitman (https://keybase.io/bwhitman) on keybase.
  • I have a public key whose fingerprint is DD06 06D4 63E7 28C3 2725 FF0A 6B3F EA00 17FE 9410

To claim this, I am signing this object:

address size/byte type description value
0x00 4 unsigned char LED_MODE 0: all off 1: one color r,g,b 2: listening [padding 1 byte] direction [2 bytes] 3: waiting 4:speaking strength [1 byte] direction [2 bytes] 5.volume volume [1 byte] 6.display led data 7:auto voice located
null b null null STRENGTH null null null
null g DIRECTION_L null DIRECTION_L null null null