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
// Libraries | |
var climate = require( 'climate-si7020' ); | |
var parse = require( 'parse' ).Parse; | |
var tessel = require( 'tessel' ); | |
var wifi = require( 'wifi-cc3000' ); | |
// Constants | |
var PARSE_APP = '_YOUR_APP_KEY_'; | |
var PARSE_KEY = '_YOUR_JAVASCRIPT_KEY_'; |
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> | |
<title>Proxy Test</title> | |
<script> | |
// Echo | |
var echo = { | |
action: "ECHO", | |
whatever: { |
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
// Libraries | |
#include <math.h> | |
// Literals | |
#define THERMISTOR A0 | |
// Constants | |
// Thermistor computation | |
const float ANALOG_STEPS = 4095.0; | |
const float B_THERM = 3977.0; |
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> | |
<title>Spinning Color</title> | |
<!-- Styles --> | |
<style type="text/css"> | |
@-webkit-keyframes spin { | |
from { | |
transform: rotate( 0deg ); |
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
<?php | |
$CHANNEL = "iot"; | |
$PUB_KEY = "_YOUR_PUBLISH_KEY_"; | |
$SUB_KEY = "_YOUR_SUBSCRIBE_KEY_"; | |
$SECRET_KEY = "_YOUR_SECRET_KEY_"; | |
$PUBNUB = "http://pubsub.pubnub.com"; | |
$data = array( | |
"count" => 3 |
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> | |
<title>AMQP Boilerplate</title> | |
<script src="http://localhost:8001/demo/amqp/javascript/WebSocket.js" type="text/javascript"></script> | |
<script src="http://localhost:8001/demo/amqp/javascript/AmqpClient.js" type="text/javascript"></script> | |
<script> | |
// Constants |
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
<?php | |
// Constants | |
$FIREBASE = "_YOUR_FIREBASE_URL_"; | |
$NODE_DELETE = "temperature.json"; | |
$NODE_GET = "temperature.json"; | |
$NODE_PATCH = ".json"; | |
$NODE_PUT = "temperature.json"; | |
// Data for PUT |
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
// Arduino libraries | |
#include <Bridge.h> | |
#include <Console.h> | |
#include <Process.h> | |
// Third-party library | |
// https://github.com/RobTillaart/Arduino | |
#include <dht.h> | |
// Literals |
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
// Originally | |
// http://phrogz.net/js/classes/OOPinJS.html | |
function Proxy() | |
{ | |
// Private variables and methods | |
// Only priveleged | |
var MY_PRIVATE = "PRIVATE"; | |
var moar_private = null; |