Skip to content

Instantly share code, notes, and snippets.

View AdamMescher's full-sized avatar
🎿
Is it ski season yet?

Adam Mescher AdamMescher

🎿
Is it ski season yet?
View GitHub Profile
@AdamMescher
AdamMescher / 00_intro.md
Last active November 6, 2019 01:14
Eloquent Javascript: A Modern Introduction to Programming

Programming - the act of constructing a program Program - set of precise instructions telling a computer what to do Programming Language - An artifically constructed language used to instruct computers

On Programming

Programming is hard and learning is hard work. Keep at it.

Chrome Dev Tools Resources

  • Drag and Drop in the Elements panel - In the Elements panel you can drag and drop any HTML element and change its position across the page

drag-and-drop-elements

  • Reference the currently selected element in the Console
@AdamMescher
AdamMescher / swd-charts.md
Last active October 16, 2024 03:08
Storytelling with Data - All Charts
@AdamMescher
AdamMescher / tabulate.js
Last active May 12, 2019 23:38
D3 Table Creation
// http://www.d3noob.org/2013/02/add-html-table-to-your-d3js-graph.html
const tabulate = (data, columns) => {
const table = d3.select("body").append("table");
const thead = table.append("thead");
const tbody = table.append("tbody");
// append the header row
thead
.append("tr")
.selectAll("th")
.data(columns)
date New York San Francisco Austin
20111001 63.4 62.7 72.2
20111002 58.0 59.9 67.7
20111003 53.3 59.1 69.4
20111004 55.7 58.8 68.0
20111005 64.2 58.7 72.4
20111006 58.8 57.0 77.0
20111007 57.9 56.7 82.3
20111008 61.8 56.8 78.9
20111009 69.3 56.7 68.8
@AdamMescher
AdamMescher / data-viz-resources.md
Last active May 13, 2019 21:01
Data Visualization Resources
@AdamMescher
AdamMescher / d3-margin-convention.md
Last active August 2, 2021 07:28
D3 Margin Convention as defined by Mike Bostok

D3 Margin Convention

As defined by Mike Bostock here - last updated 4/12/2019

  1. Define the margin object with properties for the four sides (clockwise from top, as in CSS)
var margin = {top: 20, right: 10, bottom: 20, left: 10};
@AdamMescher
AdamMescher / intro-to-data-viz-with-d3-v4.md
Last active May 11, 2019 21:54
Introduction to Data Visualization with d3.js v4