Skip to content

Instantly share code, notes, and snippets.

View resonantdoghouse's full-sized avatar
🐈

Jim resonantdoghouse

🐈
View GitHub Profile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MouseLook : MonoBehaviour
{
public float mouseSensitivity = 100.0f;
public float clampAngle = 80.0f;
private float rotY = 0.0f; // rotation around the up/y axis
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraMovement : MonoBehaviour
{
public Transform vrCamera;
public float speed = 3.0f;
public bool moveForward;
private CharacterController cc;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlanePilot : MonoBehaviour
{
public float speed = 10.0f;
// Use this for initialization
void Start()
@resonantdoghouse
resonantdoghouse / index.html
Created April 19, 2018 08:32
web audio api, random tuned pitches
<h1>Web Audio API</h1>
<h2>Tone generator & BPM</h2>
<input id="bpm" class="bpm" type="number" value="120">
<div class="play" id="play">Play</div>
<div class="stop" id="stop">Stop</div>
<p>Tones generated but also bound to keys:</p>
<p>a</p>
@resonantdoghouse
resonantdoghouse / index.haml
Created April 19, 2018 08:31
Pluto CSS / LESS
.wrapper
.stars
.pluto-container
.pluto
.heart
.heart-left
.heart-middle
.heart-right
.face
.mouth
const machine = {
green: { TIMER: 'yellow' },
yellow: { TIMER: 'red' },
red: { TIMER: 'green' }
};
const initialState = 'green';
function transition(currentState, action) {
return machine[currentState][action];
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
sudo # used for root access once logged in
# package list of software repos installed
cat /etc/apt/sources.list
# update the list of installed software
sudo apt-get update
# upgrade installed programs
<form method="post">
<input type="hidden" id="wpf_nonce_field" name="wpf_nonce_field" value="1cfd4c0539" />
<input type="hidden" name="_wp_http_referer" value="/wp-trunk/contact/" />
Enter your name: <input type="text" name="text" /><br />
<input type="submit" name="submit" value="Save Options" />
</form>
<?php