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
| using UnityEngine; | |
| using System.Collections; | |
| using System; | |
| public class CylonCoroutine : MonoBehaviour { | |
| public string MoveType = "look_down"; | |
| string server = "http://192.168.43.149:3000/"; | |
| //string server = "http://192.168.1.25:3000/"; |
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
| # install dependencies | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential | |
| sudo apt-get install -y cmake | |
| sudo apt-get install -y libgtk2.0-dev | |
| sudo apt-get install -y pkg-config | |
| sudo apt-get install -y python-numpy python-dev | |
| sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev | |
| sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev | |
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
| /* | |
| Developed by Ron Dagdag | |
| Email: ron@dagdag.net | |
| */ | |
| 'use strict'; | |
| let http = require('http'); | |
| var AWS = require("aws-sdk"); | |
| // Route the incoming request based on type (LaunchRequest, IntentRequest, |
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
| /* | |
| Developed by Ron Dagdag | |
| Email: ron@dagdag.net | |
| */ | |
| 'use strict'; | |
| let http = require('http'); | |
| // Route the incoming request based on type (LaunchRequest, IntentRequest, | |
| // etc.) The JSON body of the request is provided in the event parameter. |
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
| /* | |
| Developed by Ron Dagdag | |
| Email: rlyle78@gmail.com | |
| */ | |
| 'use strict'; | |
| let http = require('http'); | |
| var AWS = require("aws-sdk"); | |
| const dynamoTableName = "MoneyConverter"; | |
| // Route the incoming request based on type (LaunchRequest, IntentRequest, |
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
| /* | |
| Developed by Ron Dagdag | |
| Email: ron@dagdag.net | |
| */ | |
| 'use strict'; | |
| let https = require('https'); | |
| //var request = require('request'); | |
| // Route the incoming request based on type (LaunchRequest, IntentRequest, | |
| // etc.) The JSON body of the request is provided in the event parameter. |
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
| // Developer: Ron Dagdag | |
| // modified from https://github.com/krvarma/Particle-Core-Gesture/blob/master/firmware/gesture.ino | |
| // This #include statement was automatically added by the Particle IDE. | |
| #define DEBUG | |
| #include "SparkFun_APDS9960/SparkFun_APDS9960.h" | |
| // Interrupt Pin | |
| #define APDS9960_INT D3 | |
| char myIpAddress[24]; |
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 tessel = require('tessel'); | |
| var rgbLib = require('rgb-tcs34725'); | |
| var rgb = rgbLib.use(tessel.port.A); | |
| var server = require('http').createServer(); | |
| var io = require('socket.io')(server); | |
| io.on('connection', function(socket){ | |
| console.log('new connection'); | |
| socket.on('event', function(data){}); | |
| socket.on('disconnect', function(){}); |
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 socket = require('socket.io-client')('ws://192.168.43.141:3000/'); | |
| socket.on('connect', function(){ console.log('connect') }); | |
| socket.on('event', function(data){ console.log('event') }); | |
| socket.on('disconnect', function(){ console.log('disconnect') }); | |
| socket.on('colors', function(colors){ | |
| console.log(colors); | |
| /*var sum = colors.clear; | |
| var r, g, b; | |
| r = colors.red; r /= sum; | |
| g = colors.green; g /= sum; |
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
| //Presses backspace then space every 15 seconds | |
| #include <Keyboard.h>; | |
| int timeSeconds = 15 ; //Change to change interval | |
| const int pin = 0; // input pin for pushbutton | |
| int counter = 0; // button push counter | |
| void setup() { | |
| // make the pushButton pin an input | |
| pinMode(pin, INPUT_PULLUP); |