Skip to content

Instantly share code, notes, and snippets.

View lebek's full-sized avatar

Peter Le Bek lebek

View GitHub Profile
@lebek
lebek / amzn.csv
Last active August 29, 2015 13:56 — forked from lebek/amzn.csv
date close
2014-02-07 361.08
2014-02-06 354.59
2014-02-05 346.45
2014-02-04 347.95
2014-02-03 346.15
2014-01-31 358.69
2014-01-30 403.01
2014-01-29 384.2
2014-01-28 394.43
@lebek
lebek / amzn.csv
Last active August 29, 2015 13:56 — forked from lebek/amzn.csv
2014-02-07 361.08
2014-02-06 354.59
2014-02-05 346.45
2014-02-04 347.95
2014-02-03 346.15
2014-01-31 358.69
2014-01-30 403.01
2014-01-29 384.2
2014-01-28 394.43
@lebek
lebek / amzn.csv
Last active January 17, 2018 18:28
Responsive Visualizations: Basic Graph
2014-02-07 361.08
2014-02-06 354.59
2014-02-05 346.45
2014-02-04 347.95
2014-02-03 346.15
2014-01-31 358.69
2014-01-30 403.01
2014-01-29 384.2
2014-01-28 394.43
@lebek
lebek / ijulia-pca
Last active December 30, 2015 06:48
IJulia PCA demo
This file has been truncated, but you can view the full file.
{
"metadata": {
"language": "Julia",
"name": "Untitled0"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
var histWidth = 2; // Number of bins in x
var histHeight = 2; // Number of bins in y
var pointWidth = 5; // Number of points in x
var pointHeight = 5; // Number of points in y
var xScale = d3.scale.quantile()
.domain([0, pointWidth-1])
.range([0, histWidth-1]);
var yScale = d3.scale.quantile()
.domain([0, pointHeight-1])