Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
Just added a new repo for my static site generator tool...

Andrew L. Ayers andrew-ayers

😎
Just added a new repo for my static site generator tool...
View GitHub Profile
View vertigo-harmonograph.js
// 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
@andrew-ayers
andrew-ayers / index.html
Created May 19, 2017 — forked from csusbdt/index.html
How to store JSON data into the user's Google drive storage.
View index.html
<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 / ultimate-ut-cheat-sheet.md
Created May 4, 2017 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon
View ultimate-ut-cheat-sheet.md

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 / a-notes.md
Created Nov 4, 2016 — forked from creationix/a-notes.md
gikfun esp8266 kit
View a-notes.md

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

You can’t perform that action at this time.