Skip to content

Instantly share code, notes, and snippets.

@mpmckenna8
mpmckenna8 / bbcradio.sh
Created July 21, 2017 19:47 — forked from noodlebug/bbcradio.sh
Play BBC Radio with mpd or mplayer from the command line
#!/bin/bash
play() {
playlist="http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/low/ak/bbc_$1.m3u8"
echo $playlist
if mpc
then
mpc add $playlist
mpc play
else
mplayer $playlist
@mpmckenna8
mpmckenna8 / bbcradio.sh
Created July 21, 2017 19:47 — forked from stengland/bbcradio.sh
Play BBC Radio with mpd or mplayer from the command line
#!/bin/bash
play() {
playlist="http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_$1.m3u8"
echo $playlist
if mpc
then
mpc add $playlist
mpc play
else
mplayer $playlist
@mpmckenna8
mpmckenna8 / .block
Created July 21, 2017 16:46 — forked from baramuyu/.block
D3.js v4 Gantt Chart, example 3
license: mit
@mpmckenna8
mpmckenna8 / .block
Created April 25, 2017 03:26 — forked from mbostock/.block
General Update Pattern, I
license: gpl-3.0
@mpmckenna8
mpmckenna8 / .block
Created March 31, 2017 06:44 — forked from mbostock/.block
Three-Axis Rotation
license: gpl-3.0
@mpmckenna8
mpmckenna8 / .block
Created March 31, 2017 06:44 — forked from mbostock/.block
Three-Axis Rotation
license: gpl-3.0
@mpmckenna8
mpmckenna8 / .block
Created December 23, 2016 20:28 — forked from mbostock/.block
Vector Tiles
license: gpl-3.0
@mpmckenna8
mpmckenna8 / .block
Created December 16, 2016 23:16 — forked from mbostock/.block
geo2svg
license: gpl-3.0
height: 1100
border: no
@mpmckenna8
mpmckenna8 / q_example.js
Created April 9, 2016 21:47 — forked from jeffcogswell/q_example.js
Here's another chaining example on using q.js. This doesn't have any error handling, as I just want to demonstrate the chaining concept. Please read the comments carefully, as I start out with a non-q example, to show the order of flow. Please post comments if there's anything that isn't clear and I'll try to revise it as needed.
// Q sample by Jeff Cogswell
/*===========
We want to call these three functions in sequence, one after the other:
First we want to call one, which initiates an ajax call. Once that
ajax call is complete, we want to call two. Once two's ajax call is
complete, we want to call three.
BUT, we don't want to just call our three functions in sequence, as this quick
@mpmckenna8
mpmckenna8 / README.md
Last active September 16, 2017 23:46 — forked from mbostock/.block
Zoomable Sunburst

Click on any arc to zoom in. Click on the center circle to zoom out.

A sunburst is similar to a treemap, except it uses a radial layout. The root node of the tree is at the center, with leaves on the circumference. The area (or angle, depending on implementation) of each arc corresponds to its value. Sunburst design by John Stasko. Data courtesy Jeff Heer.