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 / 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 / data-viz-resources.md
Last active May 13, 2019 21:01
Data Visualization Resources
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 / 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)
@AdamMescher
AdamMescher / swd-charts.md
Last active October 16, 2024 03:08
Storytelling with Data - All Charts

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 / 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.

@AdamMescher
AdamMescher / keybase.md
Created November 8, 2019 17:40
Keybase proof

Keybase proof

I hereby claim:

  • I am adammescher on github.
  • I am adammescher (https://keybase.io/adammescher) on keybase.
  • I have a public key ASBXU8Gw1LfQGCUz77XipDWcJiTbJ8qpNjLgwgC1atO3Kgo

To claim this, I am signing this object:

@AdamMescher
AdamMescher / terminal-alias.sh
Last active December 11, 2019 01:48
end-of-2019 aliases
# UTILITY
alias uu="brew update && brew upgrade"
## Get external IP address
alias ip='dig +short myip.opendns.com @resolver1.opendns.com'
## Repeat previous command with sudo
alias ffs='sudo !!'
# List all files
alias la="ls -lAF"