Skip to content

Instantly share code, notes, and snippets.

View vyuh's full-sized avatar

Prashant Karmakar vyuh

View GitHub Profile

Solo data journalist tips and tools

Get to work

Keep lists of story ideas

Be sure to include both the simple one-shot stories as well as the bigger projects. It may be helpful to split up your lists that way.

Unless you have a super data-centric newsroom, you'll likely be seeing story ideas, or ways of approaching stories, other reporters don't. So you'll want to keep track of them for the right moment.

@BigBlueHat
BigBlueHat / index.js
Created October 17, 2014 18:29
emoji parser
var request = require('superagent');
var regex = /\:([a-z_]*)\:/g;
var paragraph = '\
This is a paragraph of text contianing :coffee:, \
:beer:, :tea:, and other :smiley_cat: emoji. \
';
request
.get('https://api.github.com/emojis')
.end(function(res) {
@tommystanton
tommystanton / ed
Created September 17, 2012 18:49
GNU ed + GNU readline
#!/bin/sh
# Try to add GNU readline support to GNU ed
hash rlwrap 2>&-
if (( $? == 0 )); then
exec /usr/bin/rlwrap /bin/ed "$@"
else
exec /bin/ed "$@"
fi