Skip to content

Instantly share code, notes, and snippets.

We can't make this file beautiful and searchable because it's too large.
unixtime,track name,artist name
1141622472,Star Dusting,The Mountain Goats
1141622648,Corpus Christi Carol,Jeff Buckley
1141622841,Best Imitation Of Myself (Nyc 6/13/02 Roseland Ballroom),Ben Folds
1141623006,Wicked Annabella,The Kinks
1141623305,Father Lucifer,Tori Amos
1141623991,Go Ahead,Rilo Kiley
1141624400,Unison,Björk
1141624714,Hyperspeed (G-Force Part 2),The Prodigy
1141624974,It's Summertime,The Flaming Lips
@drzax
drzax / formatTime.js
Created August 28, 2015 06:17
A quick 12 hour time date formatter for javascript
function formatTime(date) {
var hrs = date.getHours();
return ((hrs + 11) % 12) + 1 + ':' + ("0"+date.getMinutes()).substr(-2,2) + ((hrs > 11) ? 'pm' : 'am');
}
[{
"ministry": "<ministry identifier>",
"title": "<position title>",
"name": "<minister's name>",
"from": "<start date of ministership>",
"to": "<end date of ministership>"
},{
...
}]
[
{
"Ministry":"01. Barton (Protectionist), 1 Jan 1901-24 Sept 1903",
"Title":"Minister for External Affairs",
"Name":"Barton, Edmund",
"House":"HR",
"Party":"Protectionist",
"State":"NSW",
"InCabinet":"N/A",
"Start":"1901-01-01",
#!/usr/bin/env bash
open -n "/Applications/VLC.app" udp://@239.193.4.128:5000
/Applications/VLC.app/Contents/MacOS/VLC --no-audio udp://@239.193.4.70:5000 &
@drzax
drzax / monitor.sh
Created July 9, 2015 02:55
Quick and dirty site change monitoring
#!/bin/bash
while [ 1=1 ]; do
wget seattletimes.com -O st.html
git commit -a -m "Registered update"
sleep 600
done
@drzax
drzax / data.csv
Created August 24, 2015 05:12
data! from editdata.org!
time name
10 Simon
@drzax
drzax / index.html
Created September 16, 2015 11:57
Data Viz - Module 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3 with HTML Elements</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
</head>
<body>
<h1>Exercises for Module 2</h1>
@drzax
drzax / headjsgmaps.html
Created February 5, 2011 04:23
A head.js/Google Maps test case
<!DOCTYPE html>
<html>
<head>
<title>head.js / Google Maps test case</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https://github.com/headjs/headjs/raw/master/dist/head.load.min.js"></script>
<script>head.js('http://code.jquery.com/jquery-1.5.min.js',"http://maps.google.com/maps/api/js?sensor=false&callback=init_map");</script>
<script>
@drzax
drzax / Useful PHP Arrays
Created July 22, 2011 05:54
Useful PHP Arrays
<?php
// Australian States
array('ACT'=>'Australian Capital Territory', 'NSW'=>'New South Wales', 'NT'=>'Northern Territory', 'QLD'=>'Queensland', 'SA'=>'South Australia', 'TAS'=>'Tasmania', 'VIC'=>'Victoria', 'WA'=>'Western Australia');