Skip to content

Instantly share code, notes, and snippets.

View jeffhuys's full-sized avatar

Jeff Huijsmans jeffhuys

  • Vesper
  • Amsterdam, The Netherlands
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jeffhuys on github.
  • I am jeffhuys (https://keybase.io/jeffhuys) on keybase.
  • I have a public key whose fingerprint is 922E 5714 E87E 2D67 36DE 2FD8 CBFE 3B70 B4BB D6C9

To claim this, I am signing this object:

@jeffhuys
jeffhuys / README.md
Last active August 29, 2015 13:58 — forked from kerryrodden/.block

This example shows how it is possible to use a D3 sunburst visualization (partition layout) with data that describes sequences of events.

A good use case is to summarize navigation paths through a web site, as in the sample synthetic data file (visit_sequences.csv). The visualization makes it easy to understand visits that start directly on a product page (e.g. after landing there from a search engine), compared to visits where users arrive on the site's home page and navigate from there. Where a funnel lets you understand a single pre-selected path, this allows you to see all possible paths.

Features:

  • works with data that is in a CSV format (you don't need to pre-generate a hierarchical JSON file, unless your data file is very large)
  • interactive breadcrumb trail helps to emphasize the sequence, so that it is easy for a first-time user to understand what they are seeing
  • percentages are shown explicitly, to help overcome the distortion of the data that occurs wh
@jeffhuys
jeffhuys / gist:8936202
Last active October 19, 2020 19:12
Allow remote connections with the gearman-job-server on Debian.

This will allow for outside clients to connect to the gearman-job-server.

cd /etc/default/

nano gearman-job-server

In the last line at the bottom of the file:

PARAMS="--listen=0.0.0.0"

@jeffhuys
jeffhuys / base64encode.js
Created September 24, 2013 08:17
Javascript Base64 encoder
var keyStr = "ABCDEFGHIJKLMNOP" +
"QRSTUVWXYZabcdef" +
"ghijklmnopqrstuv" +
"wxyz0123456789+/" +
"=";
function encode64(input) {
input = escape(input);
var output = "";
var chr1, chr2, chr3 = "";