Skip to content

Instantly share code, notes, and snippets.

View peterdemartini's full-sized avatar
😎
being awesome

Peter DeMartini peterdemartini

😎
being awesome
View GitHub Profile
@peterdemartini
peterdemartini / asset.html
Last active August 29, 2015 14:27 — forked from sqrtofsaturn/asset.html
Get messages in Android from Meshblu: https://github.com/octoblu/gateblu-android
<!-- https://raw.githubusercontent.com/octoblu/gateblu-android/master/app/src/main/java/com/octoblu/gateblu/WebViewDevice.java -->
<html>
<script src="https://cdn.octoblu.com/js/meshblu/latest/meshblu.bundle.js"></script>
<script>
var meshbluConn = meshblu.createConnection(meshbluJSON);
meshbluConn.once('ready', function(){
console.log('Connected to meshblu');
meshbluConn.on('config', function(device){
console.log('on config', device);
@peterdemartini
peterdemartini / 0_reuse_code.js
Created December 4, 2013 16:35
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