Skip to content

Instantly share code, notes, and snippets.

View rondagdag's full-sized avatar

Ron Dagdag rondagdag

View GitHub Profile
@rondagdag
rondagdag / colorsense-fireworksVR.js
Created June 10, 2016 19:29
tessel 2 with Adafruit RGB TCS34725 sensor publishing data using socket.io
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(){});
@rondagdag
rondagdag / LittlebitsWebSocket.cs
Created January 3, 2016 02:53
Littlebits Web Socket using WebSocketSharp.Net and Newtonsoft.Json
using UnityEngine;
using System.Collections;
using System;
using System.Security.Policy;
using System.Threading;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using WebSocketSharp;
using WebSocketSharp.Net;
@rondagdag
rondagdag / gesture.ino
Created May 24, 2016 17:59
Particle Photon and Sparkfun RGB and Gesture Sensor communicating using TCP
// 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];
@rondagdag
rondagdag / YodaSpeak.js
Created May 16, 2016 17:39
Yoda speak for amazon echo
/*
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.
@rondagdag
rondagdag / moneyconverter.js
Last active May 13, 2016 15:42
Money Converter for Amazon Echo
/*
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,
@rondagdag
rondagdag / piratetalk.js
Created May 10, 2016 15:52
Pirate Talk
/*
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.
@rondagdag
rondagdag / Startupdo.js
Created May 10, 2016 15:11
Amazon Echo Startup Do
/*
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.
@rondagdag
rondagdag / randomcatfactjs
Last active May 9, 2016 20:31
random cat fact
/*
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,
# 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
@rondagdag
rondagdag / CylonCoroutine.cs
Created February 24, 2016 21:43
This is how I communicate with the webserver on the raspberry pi from Unity3d
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/";