Skip to content

Instantly share code, notes, and snippets.

var lanesChart = function() {
var margin = {top: 20, right: 2, bottom: 15, left: 120},
width = 960,
height = 600,
miniLaneHeight = 8,
xMiniScale = d3.time.scale(),
yMiniScale = d3.scale.linear(),
xMainScale = d3.time.scale(),
@pcarleton
pcarleton / README.md
Last active November 2, 2015 05:16
clojurescript, d3, and react for visualizing orbital eccentricities

This is an example of using ClojureScript reactjs (via Reagent) and d3 to experiment with orbital eccentricities of several bodies in the solar system.

gistup
Parameter settings:
LeftEdge = -3791
RightEdge = 4311
TopEdge = 423
BottomEdge = 6027
FingerLow = 70
FingerHigh = 75
MaxTapTime = 180
MaxTapMove = 522
MaxDoubleTapTime = 180
DATE,IOER
2013-04-04,0.25
2013-04-05,0.25
2013-04-06,0.25
2013-04-07,0.25
2013-04-08,0.25
2013-04-09,0.25
2013-04-10,0.25
2013-04-11,0.25
2013-04-12,0.25
DATE,EXCSRESNS,RESBALREQ
2005-06-01,1.7390000000000000,9.4190000000000000
2005-07-01,1.7920000000000000,9.7110000000000000
2005-08-01,1.6190000000000000,9.4090000000000000
2005-09-01,1.9950000000000000,9.7100000000000000
2005-10-01,1.8840000000000000,8.3680000000000000
2005-11-01,1.7810000000000000,8.3640000000000000
2005-12-01,1.9000000000000000,8.1460000000000000
2006-01-01,1.5750000000000000,8.6970000000000000
2006-02-01,1.5490000000000000,7.8600000000000000
@pcarleton
pcarleton / federal_reserve_all_assets
Created April 9, 2018 03:58
https://fred.stlouisfed.org/series/WALCL Federal Reserve Balance Sheet in millions of dollars
DATE,WALCL
2002-12-18,719542
2002-12-25,732059
2003-01-01,730994
2003-01-08,723762
2003-01-15,720074
2003-01-22,735953
2003-01-29,712809
2003-02-05,719643
2003-02-12,713281
DATE,CPI_PC1
2006-01-01,2.11055
2006-02-01,2.10632
2006-03-01,2.09895
2006-04-01,2.29770
2006-05-01,2.44389
2006-06-01,2.64207
2006-07-01,2.68790
2006-08-01,2.83441
2006-09-01,2.93095
DATE,CPI_PC1
2006-01-01,2.11055
2006-02-01,2.10632
2006-03-01,2.09895
2006-04-01,2.29770
2006-05-01,2.44389
2006-06-01,2.64207
2006-07-01,2.68790
2006-08-01,2.83441
2006-09-01,2.93095
@pcarleton
pcarleton / core inflation
Created April 28, 2018 23:59
https://fred.stlouisfed.org/graph/?graph_id=462858&rn=7598#0 U.S. Bureau of Labor Statistics, Consumer Price Index for All Urban Consumers: All Items Less Food and Energy [CPILFESL], retrieved from FRED, Federal Reserve Bank of St. Louis; https://fred.stlouisfed.org/series/CPILFESL, April 28, 2018.
DATE,CPI_PC1
2006-01-01,2.11055
2006-02-01,2.10632
2006-03-01,2.09895
2006-04-01,2.29770
2006-05-01,2.44389
2006-06-01,2.64207
2006-07-01,2.68790
2006-08-01,2.83441
2006-09-01,2.93095