Skip to content

Instantly share code, notes, and snippets.

View esmarkowski's full-sized avatar

Spencer Markowski esmarkowski

View GitHub Profile
require 'smartcard'
stop = false
until stop
begin
context = Smartcard::PCSC::Context.new
if context.valid?
readers = context.readers
if readers.empty?
@esmarkowski
esmarkowski / README.md
Last active August 29, 2015 14:06 — forked from mbostock/.block

This chart shows a histogram of a log-normal distribution of time durations. The data is randomly generated: each value is a number representing a duration measured in minutes. The values are then binned at regular intervals using D3’s histogram layout. A custom tick format for the x-axis converts these numbers to dates before passing them through a d3.time.format. The x-axis uses a linear scale, such that the tick values appear in-between bars; this provides better indication that each bar represents the count of values between its surrounding tick values.

See also this histogram of an Irwin–Hall distribution.