Skip to content

Instantly share code, notes, and snippets.

View robinsloan's full-sized avatar

Robin Sloan robinsloan

View GitHub Profile
Believe It
Hard to believe that, after all of it,
in bed for good now, knowing you haven’t done
one thing of any lasting benefit
@robinsloan
robinsloan / basic.html
Created October 14, 2014 19:12
This little page was so simple and fast and readable, it made my heart sing. From http://totallynuclear.club/~crm/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>~crm</title>
<style>
body {
max-width: 600px;
margin: 0 auto;
@robinsloan
robinsloan / transcriber.rb
Last active August 29, 2015 14:22
Voice memo transcriber engine. This is a very simple, highly inflexible script that probably won't be useful to many other people, but hey, you never know!
=begin README
Here's what this script does:
1. checks a Gmail inbox
2. finds attachments (which it expects to be WAV files)
3. pipes them through Google's voice transcription service
4. emails you the results
I use it with the Instacorder iPhone app for a super-fast, push-to-talk
@robinsloan
robinsloan / grammar-punctuation-etc.txt
Created July 8, 2015 23:13
Little things I tend to forget
Don't hyphenate very or an -ly adverb in a compound modifier. For example, a very good time, an easily remembered rule.
@robinsloan
robinsloan / battles.md
Last active August 29, 2015 14:26
FLOOD OF FIRE, Amitav Ghosh:

In other ways too the day was a revelation to Neel. He had never witnessed a battle before and was profoundly affected by what he saw. Thinking about it later he understood that a battle was a distillation of time: years and years of preparation, decades of innovation and change were squeezed into a clash of very short duration. And when it was over the impact radiated backwards and forwards through time, determining the future and even, in a sense, changing the past, or at least the general understanding of it. It astonished him that he had not recognized before the terrible power that was contained within these wrinkles in time -- a power that could mould the lives of those who came afterwards for generation after generation. He remembered how, when reading of long-ago battles like Panipat and Plassey, he had thought of them as immeasurably distant from his own life, a matter of quaint uniforms and old-fashioned weaponry. Only now did it occur to him that it was on battlefields such as those that his own pl

@robinsloan
robinsloan / argh.rb
Created July 1, 2011 01:13
Arghhhh
# 4<w<8, 1<y<10, x and z are 6-sided dice.
HOW_MANY = 100000
def range_rand(min,max)
min + rand(max-min)
end
def test_it
w = range_rand(4,8)
@robinsloan
robinsloan / wi.rb
Created August 4, 2011 05:49
Netflix Watch Instantly script for @queuenoodle
require 'rubygems'
require 'net/http'
require 'json'
require 'date'
module WatchInstantly
NUM_DAYS = 13
# main method
@robinsloan
robinsloan / summerknowledge.txt
Last active September 26, 2015 17:57
Summer Knowledge, Delmore Schwartz
Summer knowledge is not the winter's truth, the truth of fall,
the autumn's fruition, vision and recognition:
It is not May knowledge, little and leafing and growing green,
blooming out and blossoming white,
It is not the knowing and the knowledge of the gold fall and
the ripened darkening vineyard,
Nor the black tormented, drenched and rainy knowledge of birth,
April, and travail,
The knowledge of the womb's convulsions, and the coiled cord's
ravelled artery, severed and cut open,
@robinsloan
robinsloan / smallscore.txt
Created August 10, 2011 03:16
A Small Score, Delmore Schwartz
Meek, sang the crickets, wheat, meet, creek,
And the birds sang tutti, all of them:
"Bubble, little,
Whistle, pretty,
Trickle, whittle,
Lipping and dripping
Sipping the well
Where the fawn dipped
Before dawn descended
And darkness surrendered
@robinsloan
robinsloan / gist:1938148
Created February 29, 2012 05:25
Robert Penn Warren on the West
For West is where we all plan to go some day.
It is where you go when the land gives out and the old-field pines encroach.
It is where you go when you get the letter saying: Flee, all is discovered.
It is where you go when you look down at the blade in your hand and the blood on it.
It is where you go when you are told that you are a bubble on the tide of empire.
It is where you go when you hear that thar's gold in them-thar hills.
It is where you go to grow up with the country.
It is where you go to spend your old age.
Or it is just where you go.