Skip to content

Instantly share code, notes, and snippets.

View RandomOutput's full-sized avatar

Daniel Plemmons RandomOutput

View GitHub Profile
@RandomOutput
RandomOutput / pinchbehavior.cs
Created August 12, 2014 15:24
pinchbehavior.cs
using UnityEngine;
using System.Collections;
using Leap;
public class PinchBehavior : MonoBehaviour {
[SerializeField]
private float _startPinch = 0.75f;
[SerializeField]
private float _endPinch = 0.5f;
@RandomOutput
RandomOutput / cursorbehavior.cs
Last active August 29, 2015 14:05
Cursorbehavior.cs
using UnityEngine;
using System.Collections;
using Leap;
public class CursorBehavior : MonoBehaviour {
private Controller _leapController;
[SerializeField]
private Vector3 _leapCoordsMin;
using UnityEngine;
using System.Collections;
using System;
using System.Net.Sockets;
using System.Net;
using System.Text;
public class UdpClient : MonoBehaviour {
private static string ip = "192.168.0.0.1";
private static int port = 9002;
@RandomOutput
RandomOutput / DataServer.pde
Created February 23, 2014 20:30
Processing Data server wrapper
class DataServer {
//Data for Setting Up the Socket Server
int sport = 9002;
Server myServer;
DataServer(PApplet parent) {
//Setup the socket server
myServer = new Server(parent, sport);
}
@RandomOutput
RandomOutput / gist:9159059
Created February 22, 2014 18:01
Unity c# code for car controls.
using UnityEngine;
using System.Collections;
public class CarControls : MonoBehaviour {
public float rotationRange = 1.0f;
public float minSpeed = 0.0f;
public float maxSpeed = 20.0f;
public float carSpeed = 10.0f;
private float carRotation = 0.0f;
@RandomOutput
RandomOutput / gist:7834088
Created December 6, 2013 23:43
Find the symbols in a library and demangle the names
nm -m -o -g [libname].a | c++filt -p -i | grep [filter]
@RandomOutput
RandomOutput / .gitignore
Created October 15, 2013 00:13
Current Unity .gitignore
*.sln
*.userprefs
*.csproj
*.pidb
*.unityproj
*.svd
*.suo
*.user
*.booproj
/Library/FailedAssetImports.txt
@RandomOutput
RandomOutput / Reg
Last active December 21, 2015 18:39
import csv
import re
logFile = "sqlout.csv"
logFile2 = "out2.csv"
validNames = ['cody','cory', 'daniel','nate','chris','ian','amanda','mike']
pos_results = list()
neg_results = list()
@RandomOutput
RandomOutput / gist:6006134
Created July 16, 2013 05:57
Make arecord work for a microphone test
arecord -c1 -Dplughw:1,0 -f cd -vv /dev/null
@RandomOutput
RandomOutput / gist:5834063
Created June 21, 2013 20:23
.bash_profile
#Sifteo Setup
export SDK_DIR=/Users/RandomOutput/Developer/Sifteo/SDK/sifteo-sdk-mac64-v1.0.0-71-g0792e5f
#PATH Setup
PATH=$PATH:$HOME/bin:/Users/RandomOutput/Developer/Sifteo/SDK/sifteo-sdk-mac64-v1.0.0-71-g0792e5f/bin