Please publicly post the following Gist, and name it keybase.md:
I hereby claim:
- I am nsonnad on github.
- I am nkl (https://keybase.io/nkl) on keybase.
- I have a public key whose fingerprint is 8880 A84C 6659 C228 C9FB 8A10 CA4B 5B56 8F14 3821
#!/bin/bash | |
# Check the status of the Quartz dishwasher. This will install | |
# jsontool (http://trentm.com/json/) if you don't have it already. | |
if ! which $json >/dev/null; then | |
npm install -g json | |
fi | |
STATUS=$(curl -s http://api.qz.com/0/things/dishwasher/status) |
var fs = require('fs'); | |
var stream = require('stream'); | |
var byLine = new stream.Transform({objectMode: true}); | |
var inputFile = fs.createReadStream('uspop.csv',{'encoding': 'utf8'}); | |
var even = fs.createWriteStream('evenYears.csv'); | |
var odd = fs.createWriteStream('oddYears.csv'); | |
function evenOddYears (line) { | |
// check if year is even or odd |
Please publicly post the following Gist, and name it keybase.md:
I hereby claim:
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var d3 = require('d3'); | |
var years = [ | |
"1962", | |
"1966", | |
"1970", | |
"1974", |
What I had to do to get Subsonic working on Ubuntu with a USB DAC:
Download subsonic .deb package and install with sudo dpkg -i subsonic-x-x.deb
, as per
instructions.
Set up users w/ jukebox mode
For some reason the jukebox doesn't work with openjdk
java, but this
post
A scatterplot using d3js. It maps social trust against ease of doing business in various countries. For tooltips, it makes use of Justin Donaldson's fork of the jQuery plugin tipsy. Data come from the Pew Global Attitudes project and the Doing Business rankings. For a live example see my post on it or http://bl.ocks.org/4481531
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset=utf-8> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script> | |
<script type="text/javascript" src="https://raw.github.com/square/crossfilter/master/crossfilter.min.js"></script> | |
<style> | |
body { | |
font-size: 100%; |
[ D3 axis grid lines ] 4528060 by nsonnad
[ D3 axis grid using grouped elements ] 4528210 by nsonnad
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>US Historical Energy Consumption</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
<!--<script src="http://code.jquery.com/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script> | |
<script src="jquery.tipsy.js" type="text/javascript" charset="utf-8"></script> | |
<link rel="stylesheet" href="http://onehackoranother.com/projects/jquery/tipsy/stylesheets/tipsy.css" type="text/css" title="no title" charset="utf-8"/> --> | |
<style type="text/css"> |