Skip to content

Instantly share code, notes, and snippets.


Michael Evan Kelly thoughtleader

View GitHub Profile
View airQualityHandler
* PM2.5/PM10 Air Quality Particulate Handler for Node-Red
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
thoughtleader / heartbeats.js
Created Mar 3, 2012 — forked from andrewvc/heartbeats.js
simple canvas heartbeat monitor
View heartbeats.js
function Heartbeat(context,width,height) {
var h = this;
h.context = context;
h.width = width;
h.height = height;
h.baseline = Math.round(h.height / 2);
h.context.moveTo(h.x, h.y);
h.context.strokeStyle = "#668CFF";