Skip to content

Instantly share code, notes, and snippets.

@tylermenezes
tylermenezes / remove-rdio-garbage.js
Created Dec 9, 2012
Removes unavailable and preview albums from rdio. This is particularly useful after using the "Sync" feature, since it's useless and generates hundreds of "Unavailable" albums. Scroll to the bottom of your collection first, since it's lazy loaded.
View remove-rdio-garbage.js
(function(){
var i = 0;
var count = $('.Album.unavailable,.Album.preview').length;
console.log('Found ' + count + ' albums to remove');
var timeout = 0;
$('.Album.unavailable,.Album.preview').each(function(){
var instance_i = i++;
var album = $(this);
album.trigger('mouseover').mouseenter();
album.find('a,div,span,image').trigger('mouseover').mouseenter();
@emeeks
emeeks / firm.csv
Last active Mar 17, 2016
Modularity Mini-Map
View firm.csv
source target weight
1 3 5
1 8 3
1 9 3
1 12 3
1 15 2
1 23 3
1 26 2
1 37 2
1 46 2
@susielu
susielu / README.md
Last active Apr 15, 2016
Radar Plot Annual Temperature
View README.md

Radar Plot Example

In the example we're looking at historical weather data for San Francisco provided by intellicast.com.

@emeeks
emeeks / d3-force.js
Created Sep 16, 2016
Working Rectangular Collide
View d3-force.js
// https://d3js.org/d3-force/ Version 1.0.0. Copyright 2016 Mike Bostock.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-quadtree'), require('d3-collection'), require('d3-dispatch'), require('d3-timer')) :
typeof define === 'function' && define.amd ? define(['exports', 'd3-quadtree', 'd3-collection', 'd3-dispatch', 'd3-timer'], factory) :
(factory((global.d3 = global.d3 || {}),global.d3,global.d3,global.d3,global.d3));
}(this, function (exports,d3Quadtree,d3Collection,d3Dispatch,d3Timer) { 'use strict';
function center(x, y) {
var nodes;
@cmpolis
cmpolis / .block
Last active Sep 20, 2016
Scatterplot with d3-annotate
View .block
license: gpl-3.0
@springmeyer
springmeyer / re-concoct.xml
Created Aug 27, 2012
Re-implement the visualization from https://github.com/shawnbot/concoct in one fell swoop using Mapnik 2.1
View re-concoct.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!-- compositing mode: https://github.com/mapnik/mapnik/blob/master/include/mapnik/image_compositing.hpp#L42-79 -->
<!ENTITY comp_op "darken">
<!-- leave blank to render all data or set to some integer to render faster -->
<!ENTITY row_limit "">
<!-- size of marker ellipse -->
@mbostock
mbostock / .block
Last active Sep 26, 2018
Projected TopoJSON
View .block
license: gpl-3.0
height: 800
@deanhu2
deanhu2 / perlin-noise.gd
Last active Oct 16, 2018
Godot heightmap generator using perlin-noise
View perlin-noise.gd
#If you would like to contribute or modify the content's
#of this script, please consider contribution to the original
#repository - https://github.com/deanhu2/Perlin-Noise-Godot
tool
extends ImageTexture
export(int,1,100) var octave= 5 setget set_octave, get_octave
export(int,1,512) var width= 256 setget set_width, get_width
export(int,1,512) var height= 256 setget set_height, get_height
@hamishcampbell
hamishcampbell / description.txt
Created Mar 13, 2019
Mostly Geocoded NZ Pokie Machine Locations December 2018
View description.txt
Pokie machies by location (Dec 2018), CC-BY DIA NZ from:
https://www.dia.govt.nz/diawebsite.nsf/wpg_URL/Resource-material-Information-We-Provide-All-Venues-and-Numbers-by-Territorial-AuthorityDistrict
Geocoded with addy.co.nz 13th March 2019 by Hamish Campbell
There are a few unfound addresses and no manual checking of other results has been done.