One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
let parseDate = d3.timeParse("%m/%d/%Y") | |
let data = []; | |
d3.csv("prices.csv",(d)=>{return{ | |
month: parseDate(d.month), | |
price: Number(d.price.slice(1)) | |
} | |
}) | |
.then((d)=>{ |
/* | |
simple test code for Adafruit MiCS5524 CO, Alcohol and VOC Gas Sensor Breakout board | |
https://www.adafruit.com/product/3199 | |
*/ | |
const int enPin = 4; | |
const int analogPin = A1; | |
//declare pin using | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(enPin, OUTPUT); |
/* | |
simple code to test MQ-2 Gas Sensor Detection Module | |
*/ | |
const int digitalPin = 3; | |
const int analogPin = A0; | |
//declare input pins | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(digitalPin, INPUT); | |
pinMode(analogPin, INPUT); |
javascript: (function() { | |
function injectJquery(callback) { | |
if (window.jQuery) { | |
return callback(window.jQuery); | |
} | |
let script = document.createElement('script'); | |
script.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js'); | |
script.onload = () => callback(window.jQuery); | |
script.onerror = e => alert('The script failed to load: ' | |
e); |
function getTextNodes() { | |
var nodes = []; | |
var treeWalker = document.createTreeWalker( | |
document.body, | |
NodeFilter.SHOW_TEXT, | |
{ acceptNode: function(node) { return NodeFilter.FILTER_ACCEPT; } }, | |
false | |
); | |
while(treeWalker.nextNode()) { | |
var parentNode = treeWalker.currentNode.parentNode; |