#Workshop Times
Interested in building with Zetta today? Come to a workshop!
- 10:30a - 11:30a
- 12:30p - 1:30p
- 2:30p - 3:30p
| module.exports = function(req, res) { | |
| argo() | |
| .target('http://hello-zetta.herokuapp.com/') | |
| .run(req, res); | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>App Services HTML5 Template</title> | |
| <script src="../apigee.min.js"></script> | |
| </head> | |
| <body> | |
| <script> |
| <alps version="1.0"> | |
| <link rel="help" href="https://github.com/RESTFest/2014-Greenville/wiki/Hack%20Day" /> | |
| <!-- semantic descriptors (data elements) --> | |
| <descriptor id="todo" type="semantic"> | |
| <descriptor id="id" type="semantic" /> | |
| <descriptor id="Title" type="semantic" /> | |
| <descriptor id="DateDue" type="semantic" /> | |
| <descriptor id="Notes" type="semantic" /> | |
| <descriptor id="dateCreated" type="semantic" /> |
| var serverPath = '/servers/' + server.id; | |
| if(url.indexOf('/', url.length - 1)!== -1) { | |
| url = url + serverPath; | |
| } else { | |
| url = url.slice(0, url.length - 1) + serverPath; | |
| } |
#Workshop Times
Interested in building with Zetta today? Come to a workshop!
| HEX | |
| 7b 22 6e 61 6d 65 22 3a 22 61 63 63 65 6c 65 72 61 74 6f 72 5f 70 65 64 61 6c 5f 70 6f 73 69 74 69 6f 6e 22 2c 22 76 61 6c 75 65 22 3a 33 37 2e 32 30 30 30 30 31 7d 0d 0a 7b 22 6e 61 6d 65 22 3a 22 68 69 67 68 5f 62 65 61 6d 5f 73 74 61 74 75 73 22 2c 22 76 61 6c 75 65 22 3a 66 61 6c 73 65 7d 0d 0a | |
| Returned from interface String | |
| {"name":"accelerator_pedal_position","value":37.200001} | |
| {"name":"high_beam_status","value":false} |
| <!doctype html> | |
| <html> | |
| <head> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
| <script> | |
| $(function() { | |
| var x, y, z; | |
| window.ondevicemotion = function(event) { | |
| x = event.accelerationIncludingGravity.x; | |
| y = event.accelerationIncludingGravity.y; |
| var Phone = module.exports = function() { | |
| this.x = 0; | |
| this.y = 0; | |
| this.z = 0; | |
| }; | |
| Phone.prototype.init = function(config) { | |
| config | |
| .state('on') | |
| .type('iphone') |
| Runtime.prototype.observe = function(queries, cb) { | |
| var self = this; | |
| var filters = []; | |
| queries.forEach(function(query){ | |
| var filter = self._observable.filter(function(device) { | |
| return query.match(device); | |
| }); | |
| filters.push(filter); | |
| }); |
| var EventEmitter = require('events').EventEmitter; | |
| var util = require('util'); | |
| var Rx = require('rx'); | |
| var RxWrap = require('./observable_rx_wrap'); | |
| var Logger = require('./logger')(); | |
| var Query = require('./query'); | |
| var Registry = require('./registry'); | |
| var DeviceResource = require('./device_resource'); |