Skip to content

Instantly share code, notes, and snippets.


Automate a reminder to pack your laptop

I don't usually take my work laptop home each evening, but once in awhile I do, and a fraction of those times I've neglected to pack the deck the next morning because it's not part of my usual morning routine.

Here's a quick fix, using iCloud reminders, a neat (free!) app called ControlPlane and a couple of short scripts.

1. Install ControlPlane

Get ControlPlane by using Cask:

tommeagher / #NICAR18 advice
Last active Mar 9, 2018
Note to self for #NICAR16
View #NICAR18 advice
Next year, try to:
* Drink more water.
* Drink less coffee, beer and whiskey.
* Eat a vegetable, it won't kill you.
* Get up and hit the gym in the morning.
* Leave the hotel at least once every day.
* Bring extra charging cords and a powerstrip. Write your name on the supplies you lend out. (@ecarewgrovum)
* Eat meals with parties of 4. It's much easier to get a table in a busy town. For big groups, just get drinks.
* Split into smaller groups, if you take a large party to dinner, and you have to wait forever. (@chrislkeller)
chrislkeller /
Last active Nov 1, 2015
Thinking through how we to pool knowledge on 1033 data? Is it possible to construct a living history or nerd box or cookbook for journalists going through the 1033 data? Especially the new stuff?

Maintained version moved here

Defense Logistics Agency's 1033 program data

Commonly known as the 1033 program, the Department of Defense surplus disposal program administered through the Defense Logistics Agency has its roots in the 1990 National Defense Authorization Act, which sets the federal budget for the Department of Defense every two years.

In the 1996 version of that budget, Congress created Section 1033 that allowed "all law enforcement agencies to acquire property for bona fide law enforcement purposes that assist in their arrest and apprehension mission."

The 24-year-old program received increased scrutiny in 2014 after several media report


Storytelling from Space: Tools/Resources

This list of resources is all about acquring and processing aerial imagery. It's generally broken up in three ways: how to go about this in Photoshop/GIMP, using command-line tools, or in GIS software, depending what's most comfortable to you. Often these tools can be used in conjunction with each other.

Acquiring Landsat & MODIS

Web Interface

sterlingwes / tourney.html
Created Dec 3, 2012
Tournament Bracket Generator (Javascript + CSS, no tables)
View tourney.html
<!DOCTYPE html>
<title>Tournament Bracket Generator</title>
<script src=""></script>
<script src=""></script>
$(document).on('ready', function() {
var knownBrackets = [2,4,8,16,32], // brackets with "perfect" proportions (full fields, no byes)
View leaflet-google.js
* L.TileLayer is used for standard xyz-numbered tile layers.
L.Google = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 18,
tileSize: 256,
norosa / Word and Character Count.scpt
Last active Jan 23, 2021
Word and Character Count service for Mac OS X
View Word and Character Count.scpt
-- Word and Character Count service for Mac OS X
-- Adds a Word and Character Count option to the text selection context menu
-- Use Automator to create a new service, then select the Run AppleScript action. Make
-- sure the service is set to receive "text", at the top of the window. Paste in this code
-- and save as "Word and Character Count". Now switch to a new app, select some text,
-- right-click, go to Services, and find the new option.
-- Copyright 2015, Noah Slater <>
dkharrat / MarkItUpInlineUpload.js
Created Jan 18, 2011
upload feature for markitup...copied from as seems to be down.
View MarkItUpInlineUpload.js
// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// ----------------------------------------------------------------------------
// Html tags
// ----------------------------------------------------------------------------
// Basic set. Feel free to add more tags