View data.csv
Date Nissan Leaf Smart ED Mitsubishi I EV BMW Active E Ford Focus Honda Fit EV Tesla Model S Toyota RAV4 EV Chevrolet Spark
2010-12 19 0
2011-01 87 16
2011-02 67 16
2011-03 298 0
2011-04 573 0
2011-05 1142 8
2011-06 1708 0
2011-07 931 1
2011-08 1362 1
View badge.js
var c = document.body.appendChild(document.createElement('canvas'));
var w = 1050, h = 1500;
c.width = w;
c.height = h;
var ctx = c.getContext('2d');
ctx.fillStyle = '#000';
function wave(t, n, f) {
var val = 0;
for (var k = 1; k < n; k ++) {
val += Math.sin(Math.PI * 4 * ((2 * k) - 1) * f * t) / ((2 * k) - 1);
View badge.js
var c = document.body.appendChild(document.createElement('canvas'));
var w = 1050, h = 1500;
c.style.width = `${1050 / 2}px`;
c.style.height = `${1050 / 2}px`;
c.width = w;
c.height = h;
var ctx = c.getContext('2d');
ctx.fillStyle = '#000';
ctx.strokeStyle = '#005791';
ctx.lineWidth = 2;
View badge.js
var c = document.body.appendChild(document.createElement('canvas'));
var w = 1050, h = 1500;
//c.style.width = `${1050 / 2}px`;
//c.style.height = `${1050 / 2}px`;
c.width = w;
c.height = h;
var ctx = c.getContext('2d');
ctx.fillStyle = '#000';
ctx.strokeStyle = '#005791';
ctx.lineWidth = 2;
View badge.js
var c = document.body.appendChild(document.createElement('canvas'));
var w = 1050, h = 1500;
//c.style.width = `${1050 / 2}px`;
//c.style.height = `${1050 / 2}px`;
c.width = w;
c.height = h;
var ctx = c.getContext('2d');
ctx.fillStyle = '#000';
ctx.strokeStyle = '#005791';
ctx.lineWidth = 2;
View modern-node-module.md
View markup.md
View documentation-direction.md

documentation.js direction

I've been meditating on the direction of documentation.js going forward. Here's what I've decided on for now:

ground-up rebuild for modern javascript only

I'm going to rebuild documentation.js from the ground up, using a frontend that relies heavily on Flow annotations, and only supports export/import following. That means:

  • CommonJS import/export will no longer be supported
  • JSDoc types will no longer be supported
View foo.js
/**
* This is a {@link Foo}
* @param {Object} options
* @param {Object[]} options.employees - The employee who is responsible for the project.
* @param {string} options.employees[].name - The name of the employee.
* @param {string} options.employees[].department - The employee's department.
*/
function a(options) {}
View data-science-journal.md

Data Science Notes

Day one May 24

Finished a first tutorial on Kaggle. Quick observations:

Yep, there are a bunch of libraries I used, but they all played together really well.

Data Frames are the most unusual and new concept from a computer science standpoint - they're so aggressively Object Oriented and magical, and I'm surprised that they work across all of these libraries. seaborn, the charting library I used, was able to read them and create charts. Data Frames are basically: