Skip to content

Instantly share code, notes, and snippets.

@ialarmedalien
ialarmedalien / .block
Last active July 22, 2023 14:17
StackOverflow: radial tidy tree with networkx data
license: mit
border: yes
scrolling: yes
height: 600
@ialarmedalien
ialarmedalien / .block
Last active December 4, 2019 19:07
ESLint on dc.js
license: mit
scrolling: yes
height: 600
border: yes
@ialarmedalien
ialarmedalien / .block
Last active October 18, 2018 19:58
Nested pie chart
license: mit
border: yes
scrolling: yes
height: 600
@ialarmedalien
ialarmedalien / .block
Last active October 14, 2018 11:05
d3.form.element.colorbrewer
license: mit
@ialarmedalien
ialarmedalien / .block
Last active October 13, 2018 14:12
Pan and Zoom Controls
license: mit
border: yes
scrolling: no
height: 600
@ialarmedalien
ialarmedalien / octocat.svg
Created October 12, 2018 08:02 — forked from johan/octocat.svg
Github octocat avatar, SVG format
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ialarmedalien
ialarmedalien / dc.axis.js
Last active October 11, 2018 15:31
dc bottom axis component; easy to make more abstract for top/side axes.
/**
* Separate axis implementation.
*
* Examples:
* - {@link https://bl.ocks.org/ialarmedalien/0a4bf25ffc0fb96ae569a20f91957bc1 eslint on dc.js source}
* @class axisChart
* @memberof dc
* @mixes dc.capMixin
* @mixes dc.marginMixin
* @mixes dc.baseMixin
@ialarmedalien
ialarmedalien / tsv-formatter.js
Created October 4, 2018 11:19
TSV formatter for eslint
// output eslint results in TSV format
module.exports = function ( results = [] ) {
const sep = "\t"
, severity = [ '', 'warning', 'error' ]
, path = require( 'path' )
, eslint = require( 'eslint' )
, cwd = process.cwd()
, header = function () {
console.log( [ 'file', 'line', 'column', 'severity', 'fixable', 'code', 'description' ].join( sep ) );
@ialarmedalien
ialarmedalien / .block
Last active September 25, 2018 08:36
StackOverflow: treemap text fit
license: mit
border: yes
scrolling: yes
height: 600
@ialarmedalien
ialarmedalien / .block
Last active September 25, 2018 08:34
StackOverflow: treemap parent node grouping
license: mit
border: yes
scrolling: yes
height: 600