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
| /** | |
| * This is a simple example of how to use the Keystone library. | |
| * | |
| * To use this example in the real world, you need a projector | |
| * and a surface you want to project your Processing sketch onto. | |
| * | |
| * Simply drag the corners of the CornerPinSurface so that they | |
| * match the physical surface's corners. The result will be an | |
| * undistorted projection, regardless of projector position or |
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
| import mqtt.*; | |
| MQTTClient client; | |
| String incomingData; | |
| void setup() { | |
| client = new MQTTClient(this); | |
| client.connect("mqtt://10.35.30.35:1883"); | |
| frameRate(1); | |
| size(500, 400); |
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
| // Code with relay and MQTT control | |
| #include <ArduinoMqttClient.h> | |
| #include <WiFiNINA.h> | |
| #include "arduino_secrets.h" | |
| #include <Arduino_JSON.h> | |
| #include <assert.h> | |
| const char input[] = "{\"result\":true,\"count\":42,\"foo\":\"bar\"}"; |
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
| from arduino.app_utils import * | |
| import time | |
| import random | |
| import sys | |
| from paho.mqtt import client as mqtt_client | |
| # --- Configuration --- | |
| BROKER = '192.168.1.46' | |
| PORT = 1883 |
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
| /** | |
| * This is a simple example of how to use the Keystone library. | |
| * | |
| * To use this example in the real world, you need a projector | |
| * and a surface you want to project your Processing sketch onto. | |
| * | |
| * Simply drag the corners of the CornerPinSurface so that they | |
| * match the physical surface's corners. The result will be an | |
| * undistorted projection, regardless of projector position or | |
| * orientation. |
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
| import com.rockwellgroup.lab.processingecs.*; // import the processingECS library | |
| ProcessingECS pECS; // create a new object - see docs at http://www.ecsTBD.com for more info | |
| /** | |
| * Maker Faire building sketch | |
| * This controls a set of 4 window outputs and reads from 4 inputs | |
| */ | |
| boolean swapColor = false; | |
| boolean[] outputs = new boolean[4]; |
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
| // BIND FIX FOR OLDER BROWSERS | |
| if( Function.prototype.bind ) { | |
| } else { | |
| /** safari, why you no bind!? */ | |
| Function.prototype.bind = function (bind) { | |
| var self = this; | |
| return function () { | |
| var args = Array.prototype.slice.call(arguments); | |
| return self.apply(bind || null, args); | |
| }; |
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
| /* reset css */ | |
| html{ color:#000;background:#FFF;margin:0;padding:0;border:0;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;border:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}del,ins{text-decoration:none;}a{outline:none;} |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
| "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>untitled</title> | |
| <meta name="author" content="Joshua Walton LAB"> | |
| <!-- Date: 2011-04-20 --> | |
| </head> |
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
| var http = require('http'); | |
| var server = http.createServer(function(req, res) { | |
| res.writeHead(200, { | |
| 'Content-type': 'text/plain' | |
| }); | |
| res.end('Hello World'); | |
| }); | |
| server.listen(8000, "127.0.0.1"); |
NewerOlder