Skip to content

Instantly share code, notes, and snippets.

@cyrilcherian
cyrilcherian / README.md
Last active July 9, 2023 19:50
D3 Ranged Bar Chart

This ranged bar chart uses D3 to visualize the price range. In the dataset Car&Vehicle will have a cost range from 55$ to 190$ Television & Video will have a cost range from 75$ to 190$ so on. For demo check here

@fritzy
fritzy / getmsgpackasjson.lua
Created November 6, 2013 17:35
Redis scripts to set JSON in, store as MSGPack, and get JSON out.
--EVAL 'this script' 1 some-key
local key = KEYS[1];
local value = redis.call('GET', key);
local jvalue = cjson.encode(cmsgpack.unpack(value));
return jvalue;
@mbostock
mbostock / .block
Last active August 21, 2023 08:45
World Map
license: gpl-3.0
redirect: https://observablehq.com/@mbostock/map-coloring