Skip to content

Instantly share code, notes, and snippets.

@thedod
thedod / README.md
Last active July 12, 2021 15:34 — forked from d3noob/.block
Twister daily traffic (D3 visualization of TwisterIO stats)
@thedod
thedod / README.md
Last active August 29, 2015 14:04 — forked from anonymous/README.md
Cron kludge for #xbmc #fourtwenty ticker

This tweak lets you see a ticker based on the [https://zzzen.com/420](global 4:20pm clock)'s feed, but with shorter phrasing (to minimize the damage of XBMC's merciless title truncation).

  • Run these cron lines on a machine that serves static pages at /PATH/TO/STATIC/WEB/FOLDER/ (you can even do this on the xbmc machine itself).
  • add the url of 420.rss as an RSS source. Update every minute (it's a cheap operation).

Enjoy

screenshot

Wallpaper credit: Ann Nocenti and Sean Phillips (Kid Eternity, issue #6, 1993).

@thedod
thedod / README.md
Last active December 11, 2015 10:48 — forked from mbostock/.block
Force-layout of Cable2Graph

Update: This prototype has turned into a bigger project: http://is.gd/CableWeaver


Here's a small gallery of Cable2Graph cable reference culsters (the graphs are named after countries, but they don't "represent" the entire body of cables related to them. It's just a handy naming convention). Each node (circle) represents a cable. Each link (line) represents reference between 2 cables.

Instructions

  • Hover over a node to see details of the cable it represents.
  • Click on a node to open the related cable in a new tab.
@thedod
thedod / README.md
Last active December 11, 2015 04:58 — forked from mbostock/.block
Clickable US heat-map of petition signature count

https://gist.github.com/4544529 (demo) was my first d3 adventure, where I scraped signatures from a White House petition and showed them as a pie chart.

Here, I show them as a US heat map (based on one of Mike Bostock's map demos). You can click on a state, and see how many signatures came from it.

Darker color means more signatures, but since the numbers range from a few dozens to >4500, the scale is logarithmic. I don't know yet how to use log() interpolators (I promise to learn), so I just did it quick and dirty with linear() and masking tape.

@thedod
thedod / README.md
Created January 18, 2012 13:58 — forked from makevoid/README.md
Thorrents.com JSONP embedded search example

Example of embedded http://thorrents.com search, and a tribute to Cory Doctorow ;) tnx to @thedod

See it live here.

If you want to embed this (or any other search) in an existing page:

  • Remove first and last line and paste this where you want it in the <body/>.
  • Change query to whatever you want to search (and maybe change limit).