Skip to content

Instantly share code, notes, and snippets.

View garrettwilkin's full-sized avatar

Garrett Wilkin garrettwilkin

View GitHub Profile
{
"metadata": {
"name": "",
"signature": "sha256:bfb449ef2b39f66d75879e049a1f0d9796b61e32908ed1c1f3bd00ec7dcf56ee"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [

#API Partners at Hacking Journalism

##API Intros There will be API intros to some of the APIs. These will be running through the afternoon on Saturday.

  • 2:00 pm Embedly
  • 2:30 pm Parse.ly
  • 3:00 pm Twitter
  • 3:30 pm Enigma
  • 4:00 pm MuckRock
  • 4:30 pm Guardian
@garrettwilkin
garrettwilkin / data_stories.md
Created September 4, 2014 16:57
Data driven storytelling.

The Data Driven Narrative

As more data that describes politics, finance, governance, and social issues becomes available, new opportunities are created for technologists to inform the public. Here are a few great examples of tools which allow the user experience a situation and learn through interacting with the data.

  1. Rent vs Buy Calculator
  2. 2013 Federal Budget Proposal
  3. Senate Forecast
@garrettwilkin
garrettwilkin / views.py
Created February 12, 2015 12:29
views.py in django app that runs planout
from django.shortcuts import render, HttpResponse
from django.http import HttpResponseNotAllowed, HttpResponseBadRequest
import logging
from planout.experiment import SimpleExperiment
from planout.experiment import DefaultExperiment
from planout.namespace import Namespace
from planout.namespace import SimpleNamespace
from planout.ops.random import *
import json
@garrettwilkin
garrettwilkin / 0_reuse_code.js
Last active August 29, 2015 14:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@garrettwilkin
garrettwilkin / apt-get & npm link logs
Created February 27, 2012 11:13
Install issues on ubuntu
@garrettwilkin
garrettwilkin / mdns 0.0.5 node-waf -v configure build
Created February 27, 2012 13:06
mdns 0.0.5 compile failing - help!
garrett@li284-151:~/mdns/agnat-node_mdns-d979f84$ node-waf -v configure build
Setting srcdir to : /home/garrett/mdns/agnat-node_mdns-d979f84
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
Checking for header dns_sd.h : 13:04:38 runner system command -> ['/usr/bin/g++', '-g', '-I/usr/local/include', '../test.cpp', '-c', '-o', 'default/test_1.o']
@garrettwilkin
garrettwilkin / Failing at linking Hook.io
Created February 27, 2012 22:59
This is me, trying to install hook.io since it won't come down with NPM 1.1, i'm trying it manually
Linking in the hook.io folder:
-----------------------------
garrett@li284-151:~/hook.io$ sudo npm link
npm WARN eyes@0.1.7 dependencies field should be hash of <name>:<version-range> pairs
npm http GET https://github.com/substack/socket.io-client/tarball/master
npm http 200 https://github.com/substack/socket.io-client/tarball/master
/usr/local/bin/hookio -> /usr/local/lib/node_modules/hook.io/bin/hookio
/usr/local/lib/node_modules/hook.io -> /home/garrett/hook.io
for (var f in HTTP) {
typeof HTTP[f] === 'function' && (this.HTTP[f] = HTTP[f].bind(this));
}
for (var member in provider) {
if (typeof provider[member] === 'function') {
if (member === 'HTTP' || member === 'provider') {
throw new Error('API object or function name `' + member + '` is reserved');
}
@garrettwilkin
garrettwilkin / .vimrc
Created April 17, 2012 23:23
.vimrc file when jslint causes input errors
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vungle manage Vundle
" required!
Bundle 'gmarik/vundle'