Skip to content

Instantly share code, notes, and snippets.

View christianbundy's full-sized avatar

Christian Bundy christianbundy

  • 05:42 (UTC -07:00)
View GitHub Profile
@christianbundy
christianbundy / data.csv
Created January 5, 2016 22:22 — forked from d3noob/.block
Simple d3.js Graph
date close
1-May-12 58.13
30-Apr-12 53.98
27-Apr-12 67.00
26-Apr-12 89.70
25-Apr-12 99.00
24-Apr-12 130.28
23-Apr-12 166.70
20-Apr-12 234.98
19-Apr-12 345.44
#!/usr/bin/env bash
trap 'exit' ERR # exit on error (better than `set -e`)
set -x # echo commands before running
set -u # throw error if an unbound variable is called
BASEDIR=$(cd $(dirname $0) && pwd) # path to directory for itself
LOGDIR="$BASEDIR/times" # directory for logging
LOGFILE="$LOGDIR/times.txt" # file for logging (within $LOGDIR)