Skip to content

Instantly share code, notes, and snippets.

View danse's full-sized avatar

Francesco Occhipinti danse

  • Internet
View GitHub Profile
@danse
danse / README.md
Created February 6, 2013 17:00 — forked from mbostock/.block
@danse
danse / README.md
Created February 8, 2013 17:42 — forked from mbostock/.block

Source: Bureau of Labor Statistics

This visualization shows the distribution of unemployment for 380 U.S. metropolitan areas from January 2000 to December 2012. I’m currently weighting each area equally, but it would probably be better to weight areas by the size of the civilian labor force. Thanks to Kevin Quealy for suggesting this dataset, which was the basis for his earlier graphic!

# Specify where our binaries are (I'm using package.json and npm to handle dependencies)
LESSC = node_modules/.bin/lessc
UGLIFYJS = node_modules/.bin/uglifyjs
# Our LESS input file(s)
LESS = css/base.less
# Our CSS list (replaces .less with .css in the list)
CSS = $(LESS:.less=.css)
/**
* Just for fun: Wifi icon with pure CSS
*/
.wifi {
padding: 20px;
}
.wifi, .wifi:before {
display: inline-block;
/**
* SVG inspired by Quine's paradox
*/
svg {
display: block;
margin: 40px auto;
font: 83px sans-serif;
}
// Gruntfile with the configuration of grunt-express and grunt-open. No livereload yet!
module.exports = function(grunt) {
// Load Grunt tasks declared in the package.json file
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// Configure Grunt
grunt.initConfig({
// grunt-express will serve the files from the folders listed in `bases`
@danse
danse / README.md
Created February 22, 2014 14:11 — forked from mbostock/.block

This variation of a simple bar chart adds sorting with staggered delay and translucency to improve readability during the transition. This technique is recommended by Heer & Robertson. Use the checkbox in the top right to turn sorting on or off.

@danse
danse / snippet.js
Created March 17, 2014 20:29 — forked from dwtkns/snippet.js
var s=document.createElement('script'); s.type='text/javascript'; s.src='http://d3js.org/d3.v3.min.js'; document.head.appendChild(s);
@danse
danse / README.md
Created March 17, 2014 20:30 — forked from dwtkns/README.md

Building on this - experimenting with fake 3d svg arcs using two nested orthographic projections and cardinal line interpolation.

@danse
danse / app.py
Last active August 29, 2015 14:02 — forked from petrjasek/app.py
from Eve import Eve
import superdesk.users
import superdesk.auth
app = Eve(auth=superdesk.auth.SuperdeskTokenAuth)
superdesk.users.register(app)
superdesk.auth.register(app)
app.run()