Skip to content

Instantly share code, notes, and snippets.

View rondagdag's full-sized avatar

Ron Dagdag rondagdag

View GitHub Profile
@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/";
@rondagdag
rondagdag / CM_RandomEyesBroadcastEventTester.cs
Created February 24, 2016 21:41
This is how I set the move type to be sent to web app in raspberry pi
using UnityEngine;
using System.Collections;
using CrazyMinnow.SALSA; // Import SALSA from the CrazyMinnow namespace
/*
Script usage instructions
This class demonstrates the use of the RandomEyes 2D/3D [Broadcast Eye Events],
and the RandomEyes 3D [Broadcast Custom Shape Events], to catch
@rondagdag
rondagdag / PhotonWS.cs
Created February 5, 2016 21:25
Here's what I used to receive UDP Packets from Photon
using UnityEngine;
using System.Collections;
using System;
using System.Security.Policy;
using System.Threading;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using System.Net.Sockets;
@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;