Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View thoughtleader's full-sized avatar

Michael Evan Kelly thoughtleader

  • Walnut Creek, CA
View GitHub Profile
@piotrkpaul
piotrkpaul / sds011_nodemcu.ino
Created April 11, 2017 22:56
Lightweight data collector for SDS011 particulate matter sensor on NodeMCU board (ESP8266)
#include <SoftwareSerial.h>
#include "Sds011.h"
#define SDS_RX D1
#define SDS_TX D2
#define SAMPLES 5
SoftwareSerial serialSDS(SDS_RX, SDS_TX);
sds011::Sds011 sds(serialSDS);
@michaelgold
michaelgold / SmartThings Insteon Hub
Last active January 1, 2022 11:51
SmartThings Insteon Hub Device Type
/**
* Insteon Switch (LOCAL)
*
* Copyright 2014 patrick@patrickstuart.com
* Updated 1/4/15 by goldmichael@gmail.com
*
* 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:
*
* http://www.apache.org/licenses/LICENSE-2.0
(function($) {
$.fn.clippy = function(text, bgcolor) {
if (!bgcolor) {
var node = $(this);
while (node.css('background-color') == 'transparent' && node.length) {
node = node.parent();
}
if (!node.length) {
bgcolor = '#ffffff';
} else {