using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |
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