Skip to content

Instantly share code, notes, and snippets.

View andrew-ayers's full-sized avatar

Andrew L. Ayers andrew-ayers

View GitHub Profile
@andrew-ayers
andrew-ayers / a-notes.md
Created November 4, 2016 02:07 — forked from creationix/a-notes.md
gikfun esp8266 kit

Amazon has a really good deal on an ESP8266 board in stock with prime. http://www.amazon.com/Gikfun-ESP8266-ESP-12-Industrial-version/dp/B00RK1W7R6

There are no instructions with it so I bought one and between probing with my multimeter and trying different things, I was able to get nodemcu running.

Yellow jumper seems to toggle between flash mode and at mode, closed is flash mode.

three pins labeled gnd, tx, tr are for uart and are what you should plug in. tx-tx,rx-rx,gnd-gnd.

You can leave power dangling

@andrew-ayers
andrew-ayers / ultimate-ut-cheat-sheet.md
Created May 4, 2017 19:59 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@andrew-ayers
andrew-ayers / index.html
Created May 19, 2017 16:54 — forked from csusbdt/index.html
How to store JSON data into the user's Google drive storage.
<html>
<head>
<!--
In this example, I started with the 5-minute example provided by Google
on the following page:
https://developers.google.com/drive/
I modified the example code, so that I could write the following
@andrew-ayers
andrew-ayers / vertigo-harmonograph.js
Created May 2, 2018 21:27 — forked from limzykenneth/vertigo-harmonograph.js
Vertigo poster graphics generator written in p5.js. Translated to p5.js from https://www.johndcook.com/blog/2017/02/14/recreating-the-vertigo-poster/
// Stop after how many frames
var iterations = 4000;
// The higher the damping the less the pendulum will shift its position
// ie. damping of 1000 or more will just draw concentric spirals
var damping = 400;
function setup() {
// Create canvas
var canvas = createCanvas(500, 500);
// Give canvas an id in order to style it with CSS later