Skip to content

Instantly share code, notes, and snippets.


Robin Sloan robinsloan

View GitHub Profile
View believe-it.txt
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 / basic.html
Created Oct 14, 2014
This little page was so simple and fast and readable, it made my heart sing. From
View basic.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
body {
max-width: 600px;
margin: 0 auto;
robinsloan / pcal.rb
Created Mar 11, 2015
Add entries for prime-numbered weekdays to your Google calendar. Useful to literally no one but me.
View pcal.rb
require "rubygems"
require "google_calendar"
require "date"
require "prime"
# Create an instance of the calendar.
cal = => "foo"
:client_secret => "bar",
:calendar => "blee",
robinsloan / transcriber.rb
Last active Aug 29, 2015
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!
View transcriber.rb
=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 / grammar-punctuation-etc.txt
Created Jul 8, 2015
Little things I tend to forget
View grammar-punctuation-etc.txt
Don't hyphenate very or an -ly adverb in a compound modifier. For example, a very good time, an easily remembered rule.
robinsloan /
Last active Aug 29, 2015
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

View argh.rb
# 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)
def test_it
w = range_rand(4,8)
robinsloan / wi.rb
Created Aug 4, 2011
Netflix Watch Instantly script for @queuenoodle
View wi.rb
require 'rubygems'
require 'net/http'
require 'json'
require 'date'
module WatchInstantly
# main method
robinsloan / summerknowledge.txt
Last active Sep 26, 2015
Summer Knowledge, Delmore Schwartz
View summerknowledge.txt
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 / smallscore.txt
Created Aug 10, 2011
A Small Score, Delmore Schwartz
View smallscore.txt
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