Skip to content

Instantly share code, notes, and snippets.

@mmattozzi
mmattozzi / .block
Created May 15, 2018 03:19 — forked from d3noob/.block
Dual axes in v4
license: gpl-3.0
@mmattozzi
mmattozzi / README.md
Last active May 8, 2016 23:55 — forked from mbostock/.block
Bubble Chart

Bubble charts encode data in the area of circles. Although less perceptually-accurate than bar charts, they can pack hundreds of values into a small space. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

@mmattozzi
mmattozzi / List postgres indexes and sizes
Last active December 15, 2015 12:09 — forked from next2you/Postgres Index Usage.sql
Displaying indexes in a postgres db
SELECT idx.relname as table,
idx.indexrelname as index,
pg_relation_size( idx.indexrelname::text ) as bytes,
cls.relpages as pages,
cls.reltuples as tuples,
idx.idx_scan as scanned,
idx.idx_tup_read as read,
idx.idx_tup_fetch as fetched
FROM pg_stat_user_indexes idx,
pg_class cls ,