This file contains hidden or 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
# | |
# Ping me when Glass connects / DD-WRT start up script | |
# | |
# Pings service on connect based on MAC, then pings endpoint which handles Glass talking | |
# | |
# Based on some older scripts that I was pretty sure used to be at http://www.dd-wrt.com/wiki/index.php/Script_Examples | |
# but for the life of me, I can't recall which ones | |
# | |
# Setup some devices based on MAC address |
This file contains hidden or 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
// | |
// Fast test for npTuioClient plugin https://github.com/fajran/npTuioClient | |
// Tested with PQ Labs touch overlay devices | |
// | |
// Chances are good if you use this, you'll want the Boris' MagicTouch | |
// touch api polyfill: https://github.com/borismus/MagicTouch | |
// | |
Modernizr.addTest('tuio', function () { | |
return ((typeof navigator.plugins != "undefined" && typeof navigator.plugins["Tuio Client browser plugin"] == "object")); |
This file contains hidden or 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
$.ajax({ | |
url: "getGooglePlus.php", | |
dataType: "jsong", | |
converters: { | |
"json jsong": function( msg ) { | |
var retData = new Array(); | |
for (var i = 0; i < msg.items.length; i++) { | |
if ( msg.items[i].object.hasOwnProperty( "attachments" ) && msg.items[i].object.attachments.length >= 1) | |
{ | |
for (var j = 0; j < msg.items[i].object.attachments.length; j++) |
This file contains hidden or 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
// JDR: who you are, and how many results you want | |
$myGooglePlusUser = "{YOUR_GOOGLE_PLUS_ID_NUMBER_HERE}"; | |
$myGooglePlusMaxResults = 20; | |
// JDR: get your Google API key from the APIs Console: https://code.google.com/apis/console#access | |
$myGoogleAPIkey = "{YOUR_API_KEY_HERE}"; | |
$myGooglePlusQuery = "https://www.googleapis.com/plus/v1/people/" . $myGooglePlusUser . "/activities/public?alt=json&maxResults=" . $myGooglePlusMaxResults . "&fields=items(object(attachments(categories%2Ccontentsource%2CdisplayName%2CobjectType%2Curl)%2Curl))&pp=1&key=" . $myGoogleAPIkey; | |
$myCacheFile = "me.json"; // JDR: name the cache file whatever you like | |
$myCacheCycle = "600"; // JDR: in seconds |
This file contains hidden or 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
http://events.jquery.org/2011/sf-bay-area/schedule/ | |
http://danheberden.com/presentations/deferreds-putting-laziness-to-work/#1 | |
http://boazsender.com/understanding-jquery-events.html | |
http://standardista.com/jquery/ | |
http://www.slideshare.net/darcyclarke/mind-blowingux | |
http://demo.creative-area.net/jqcon2011/#1 | |
http://www.slideshare.net/nzakas/progressive-enhancement-20 | |
http://filamentgroup.com/lab/slides_from_our_jquery_conference_presentation_on_jquery_mobile/ | |
http://www.coldfusionjedi.com/index.cfm/2011/4/16/Slides-code-from-my-jQuery-Mobile-presentation | |
http://code.bocoup.com/popcorn.js/jqcon/#landing-slide |
NewerOlder