Skip to content

Instantly share code, notes, and snippets.

Avatar

Owen Dall Sotomayor owendall

View GitHub Profile
@owendall
owendall / .block
Created Jul 2, 2018 — forked from rpgove/.block
Force Directed Layout Quality Convergence
View .block
license: gpl-3.0
height: 600
scrolling: no
border: yes
View aws-for-frontend.md

Frontend Masters: AWS for Frontend Engineers

You should have the following completed on your computer before the workshop:

  • Have Node.js installed on your system. (Recommended: Use nvm.)
    • Unfortunately, you'll need to be on Node 9.x or earlier. Dependencies are hard and one of the dependencies of one of our dependencies is set to not allow Node 10.x.
  • Create an AWS account. (This will require a valid credit card.)
  • Install multi-factor authentication app (e.g. Authy, Google Authenticator, Duo).
  • Install the AWS CLI. (brew install awscli should do the trick. Otherwise, you'll need Python and PIP, which you can install using brew install python.)
  • Install the AWS Mobile Hub CLI: npm install -g awsmobile-cli or yarn global add awsmobile-cli.
@owendall
owendall / .block
Created Sep 10, 2017 — forked from micahstubbs/.block
Sankey Particles | d3v4 & es2015+
View .block
border: no
license: Apache-2.0
@owendall
owendall / d3.sankey.js
Created Sep 10, 2017 — forked from emeeks/d3.sankey.js
Sankey Particles
View d3.sankey.js
d3.sankey = function() {
var sankey = {},
nodeWidth = 24,
nodePadding = 8,
size = [1, 1],
nodes = [],
links = [];
sankey.nodeWidth = function(_) {
if (!arguments.length) return nodeWidth;
@owendall
owendall / .block
Created Sep 5, 2017 — forked from domoritz/.block
Vega-Lite block example
View .block
license: bsd-3-clause
@owendall
owendall / index.html
Last active Sep 16, 2017
Vega Tooltip Test - vega-embed-3.0.0-beta.20
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Testing vega-lite 2 and tooltip</title>
<meta charset="utf-8">
<!-- Import Vega 3 & Vega-Lite 2 js (does not have to be from cdn) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega/3.0.2/vega.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-lite/2.0.0-beta.19/vega-lite.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-embed/3.0.0-beta.20/vega-embed.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/vega-tooltip/0.4.3/vega-tooltip.min.css"></link>
@owendall
owendall / Tooltip Test
Last active Sep 1, 2017 — forked from sirahd/.block
Vega-lite Scatterplot with Tooltip
View Tooltip Test
A vega-lite scatterplot example for vega-tooltip. You can specify the limited sets of field to display in tooltip by setting `showAllFields` to false, then specify those in `fields` array. You can also rename the field by specifying `title`
@owendall
owendall / .block
Created Sep 1, 2017
Vega-Lite block example
View .block
license: bsd-3-clause
@owendall
owendall / protips.js
Created Aug 11, 2017 — forked from nolanlawson/protips.js
Promise protips - stuff I wish I had known when I started with Promises
View protips.js
// Promise.all is good for executing many promises at once
Promise.all([
promise1,
promise2
]);
// Promise.resolve is good for wrapping synchronous code
Promise.resolve().then(function () {
if (somethingIsNotRight()) {
throw new Error("I will be rejected asynchronously!");
@owendall
owendall / .block
Last active May 14, 2017
Sankey Transitions - Topic Words
View .block
license: mit