Skip to content

Instantly share code, notes, and snippets.

View jsvine's full-sized avatar

Jeremy Singer-Vine jsvine

View GitHub Profile
@jsvine
jsvine / plain HTML boilerplate
Created September 8, 2011 16:17
plain HTML boilerplate
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>title</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="robots" content="index,cache,follow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
/* USAGE:
$(function(){
var steps = new Stepper("#steps");
steps.addSlide(1, function(){ this.canvas.text("slide 1"); });
steps.addSlide(2, function(){ this.canvas.text("slide 2"); });
steps.go();
});
*/
@jsvine
jsvine / out-of-office.md
Created April 2, 2012 14:46
Out Of Office Message

I am out of the office until the next business day. If you need to contact me urgently, please call XXX-XXX-XXXX. Thank you.

@jsvine
jsvine / wsj-interactive-graphics-job-posting.md
Created April 16, 2012 22:35
Job Posting: Interactive-Graphics/News-App Developer at The Wall Street Journal

Job description: The Wall Street Journal is looking for a visual journalist/news app developer. Candidates would be assigned to work on WSJ.com's long-term investigative pieces, real time news coverage, and the online components of data-centric packages.

Persons applying should be skilled in the field of data visualization and well-schooled in the narrative presentation of complex topics.

The news graphics team also develops the tools that update and support several ongoing graphics and this person would be expected to contribute to that effort.

Qualified candidates should be experienced developing web applications using Javascript (particularly jQuery, Raphael and others a plus), PHP, MySQL, Django, Python and other frameworks. Successful applicants would be expected to design projects in a responsive manner.

Please send a cover letter, resume and links to your work to: infographics.posting@dowjones.com

@jsvine
jsvine / git-editing-offer.md
Created April 19, 2012 02:08
A Git-for-Prose Experiment

A Git-for-Prose Experiment

TL;DR: I'll edit (almost) whatever prose you throw at me, provided you agree to use git for the entire process.

If you're reading this, you're probably familiar with git. But if you're not: [git][git-wiki] is an amazingly nimble "distributed revision control" system. Or -- in plain English -- it's what might happen if track-changes, a time machine, and a collage artist had a beautiful baby.

Software development is git's nearly universal use-case, and with good reason. Its branching and merging features let developers easily collaborate and experiment with new, crazy features without having to worry about wrecking a project or taking it in the wrong direction.

But there is, I think, a huge and largely untapped potential in using git for prose. The same branching and merging features could encourage writers and editors to take risks with a piece's style or structure that might otherwise seem too daunting. At the very least, git provides a way to track changes to a docume

@jsvine
jsvine / vertebrates.js
Created April 26, 2012 19:56
vertebrates.js
var Vertebrate = {};
Vertebrate.Model = Backbone.Model.extend();
Vertebrate.Collection = Backbone.Collection.extend({
model: Vertebrate.Model
});
// Source: http://en.wikipedia.org/wiki/Vertebrates
var vertebrates = new Vertebrate.Collection([
@jsvine
jsvine / draft.md
Created June 9, 2012 18:16
Versioned Writing

Versioned Writing — an experiment

Status: Very drafty.

Git for prose, Git for everything

Recently, I've become hooked on the idea of applying version-control software (and the concepts it enables) to writing. Git and GitHub have completely transformed, for the better, the way I write and think about software. I have a hunch they can something similar for writing.

Some form of versioning already exists, raggedly, in most prose-writing workflows. It's typically linear. For instance, we all have a folder somewhere that looks like this:

@jsvine
jsvine / README.md
Created June 13, 2012 13:40
Most-Requested gTLDs -- 12 Jan 2012 through 30 May 2012
@jsvine
jsvine / draft.md
Created August 8, 2012 14:56
Why I love Tabletop.js but don't use it in production

Tabletop.js is a fantastic, open-source JavaScript library that lets developers easily integrate data from Google Spreadsheets into their online projects. I've used it, even contributed a minor feature, and love it for prototyping. Non-programmers love being able to update a project via Google Spreadsheets' hyper-intuitive interface.

That said, I'm extraordinarily wary of using Tabletop in production. Instead, at the Wall Street Journal, we use a bit of middleware to "prune" our Google Spreadsheets-based data and then cache it on our own servers. A few brief reasons:

@jsvine
jsvine / draft.md
Created August 10, 2012 14:10
Brute-Forcing a Word Puzzle

All this week, I've been trying to chip away at Allen R. Morgan's "Twice Removed" puzzle on page 50 of the August 5, 2012 New York Times Magazine. The rules:

For each word below, add the same pair of letters *twice* 
to complete a longer word. For example, if you were given 
MOTE, you would add ON twice to make MONOTONE.

After a few days, I'd found just four of the 24 words. Pathetic. After moping for a bit, I tried brute-forcing the answers. The strategy was simple, but radically different from how you or I would try solving the puzzle by hand. The steps:

  1. Get a big list of English words.