Skip to content

Instantly share code, notes, and snippets.

var r = new Rune({
container: "#canvas",
width: 800,
height: 800,
debug: true
});
var w = 205;
var h = 170;
var y = 704;
var r = new Rune({
container: "#canvas",
width: 800,
height: 800,
debug: true
});
var w = 205;
var h = 170;
var y = 704;
/*
Button
Turns on and off a light emitting diode(LED) connected to digital
pin 13, when pressing a pushbutton attached to pin 2.
The circuit:
* LED attached from pin 13 to ground
* pushbutton attached to pin 2 from +5V
//https://msdn.microsoft.com/en-us/library/hh924823(v=vs.85).aspx
//https://github.com/IDMNYU/p5.js-speech/blob/master/examples/05continuousrecognition.html
//marc abbey
var myRec = new p5.SpeechRec(); //new p5 speech rec object
myRec.continuous = true; //continuous speech recognition
myRec.interimResults = true; //allow partial recognition (faster, less accurate)
var yodel;
var speak;
// Reference: http://pixelnest.io/tutorials/2d-game-unity/menus/
using UnityEngine;
using System.Collections;
public class start : MonoBehaviour {
// Use this for initialization
void OnGUI () {
const int buttonWidth = 200;
//https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/audio
//http://docs.unity3d.com/ScriptReference/AudioSource.Play.html
using UnityEngine;
using System.Collections;
public class crash : MonoBehaviour {
//create collision function
//https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/audio
//http://docs.unity3d.com/ScriptReference/AudioSource.Play.html
//AV 'Sehyun Kim'
using UnityEngine;
using System.Collections;
public class pingScript : MonoBehaviour {
//create boolean terms
bool isStartedMoving;
//The slow drawer must opperate in pairs. DO NOT OPPERATE SOLO OR IN MIXED PAIRS
int slowDrawerOutHot = 6;
int slowDrawerOutCold = 7;
int slowDrawerInHot = 8;
int slowDrawerInCold = 9;
//fast twitch only
int solenoidDrawer = 10;
int dcDrawer = 11;
int coughMotor = 5;
//range finder
2547.3oc6bs0ihiiE94p9UXwS6JwvFaGeI8aytZ0nVZuLR8LOM0nRAv.YpPL
Shopt5QS+ae8kDHTMIDBIgp1t4A.6bgy2mO27wN7G2dynoxOJxFAdG3W.2by
eb6M2X6xzwM4suYz5vONKNLydZiRDOIm9aiF6NjR7Qks6MoQIJvph9S1tNJI
VnrWCLuyL0ywB6YW5zjaUEmmWduaBUyVEkr79TwLkS1fnfIdiAHDy7guuqwD
OvuleMQys2Xsn8cPuQl99yau0713NAWhTQeAs.hALXNx7AEVGxBZCvBUpzsQ
EhkSlTOuQ390GMZ2OTq.FrlwLhEL9VfAId0gLFt31aDWa2YhzMxTUaf7zsJk
LoRHOMLYY+AarF1X8Ke+w.BWqopeQgZn6TZ8qf.7dyATjdHkpewPmCPo72d.
kSrinryZDkRe6o5hrFomAF8e6MXB8aiVKrCiojIhAP.BfA9.BfBXZgR6YrdB
Y7k+YUjpWSY0Zhhgnbqy9.3j.8Kbv38wrONkRZUzLsDMUjVczrwch9CpFfxH
V8GBUiVLe22qO9FY2n6lvzv0BkH8dQR3TmT30BhXsHKKbo3biqi5.uDXmEDm
//https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/audio
//http://docs.unity3d.com/ScriptReference/AudioSource.Play.html
using UnityEngine;
using System.Collections;
public class pingScript : MonoBehaviour {
//Volume: 0-1
//Magnitude: volume dependent on magnitude
// Use this for initialization