Skip to content

Instantly share code, notes, and snippets.

@adamlounds
adamlounds / Makefile
Last active August 29, 2015 14:19 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@adamlounds
adamlounds / heatmap.js
Created January 24, 2017 08:46
Show request timings in a heatmap
// takes request timings in µs, bucketed into 5-minute buckets, and
// renders them onto a canvas
var hits = {
1484545800: [4136756,6564120,7232318,8041312,1982390,10570437],
1484546100: [7859082,6265671,6361644,5818958],
1484546400: [6313574,9480778,3943197,11844236,18682848],
1484546700: [18782935,19409974,3003980,7977562,15467698,3686429,6981970,3498479],
};
var min_t;