Skip to content

Instantly share code, notes, and snippets.

View arnaudmolo's full-sized avatar

Arnaud Pichon arnaudmolo

View GitHub Profile
@nerik
nerik / index.js
Created December 7, 2016 16:04
Quick histograms in the browser console with d3
const bins = d3.histogram()(data);
const x = d3.scaleLinear().domain([0, d3.max(bins, d => d.length)]).range([0, 30]);
console.table(bins.filter(bin => bin.length).map(bin => {
const binMin = d3.min(bin).toLocaleString();
const binMax = d3.max(bin).toLocaleString();
return {
range: [binMin, binMax].join('-'),
bars: Array(Math.round(x(bin.length))).join('█'),
num: bin.length
};
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active June 13, 2024 10:59
A badass list of frontend development resources I collected over time.