Skip to content

Instantly share code, notes, and snippets.

View Kurt-E-Clothier's full-sized avatar

Kurt E. Clothier Kurt-E-Clothier

View GitHub Profile
@Kurt-E-Clothier
Kurt-E-Clothier / publishMsg.c
Last active October 18, 2017 22:27
Code chunks from project javamon
// Publish the value using PubNub
static void publishMsg (void)
{
// Check values for I2C line error...
if (TWI_msg[0] > 99 || TWI_msg[1] > 99) {
TWI_fullMsg = 10000;
}
// Ignore very small values
else if (TWI_msg[0] == 0 && TWI_msg[1] < 50) {
TWI_fullMsg = 0;
@Kurt-E-Clothier
Kurt-E-Clothier / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console