Skip to content

Instantly share code, notes, and snippets.

@ShawnHymel
ShawnHymel / motor-driver-example.ino
Last active January 20, 2020 07:14
Workshop - Motor Driver
// Pins
int switchPin = 7;
const int BIN1 = 8;
const int BIN2 = 9;
const int PWMB = 10;
const int PWMA = 11;
const int AIN2 = 12;
const int AIN1 = 13;
// Parameters
@keijiro
keijiro / houdini_engine.md
Last active January 26, 2018 19:34
Personal notes on Houdini Engine for Unity

Creating a Houdini asset

  • Select a group of nodes or a subnet node.
  • "Assets" -> "New Digital Asset From Selection..."

A Houdini asset file (.hdalc) will be created in the asset library directory ($HOUDINI_PATH/otls). To maintain this file within the Git repository, it should be moved into the project asset directory ($HIP/otls).

@ShawnHymel
ShawnHymel / two_channel_receiver.ino
Created August 24, 2017 15:17
Mixing 2 channels from an RC hobby controller for arcade drive
/**
* Two Channel Receiver
* Author: Shawn Hymel (SparkFun Electronics)
* Date: Aug 24, 2017
*
* Connect a TB6612FNG and RC (PWM) receiver to the Arduino.
* Mixes two channels for arcade drive.
*
* This code is beerware; if you see me (or any other SparkFun
* employee) at the local, and you've found our code helpful,
@paulirish
paulirish / performance.now()-polyfill.js
Last active August 1, 2023 15:42
performance.now() polyfill (aka perf.now())
// @license http://opensource.org/licenses/MIT
// copyright Paul Irish 2015
// Date.now() is supported everywhere except IE8. For IE8 we use the Date.now polyfill
// github.com/Financial-Times/polyfill-service/blob/master/polyfills/Date.now/polyfill.js
// as Safari 6 doesn't have support for NavigationTiming, we use a Date.now() timestamp for relative values
// if you want values similar to what you'd get with real perf.now, place this towards the head of the page
// but in reality, you're just getting the delta between now() calls, so it's not terribly important where it's placed
@alunny
alunny / index.html
Created February 25, 2012 00:57
simple PhoneGap File API example
<html>
<body>
<form onsubmit="return saveText()">
<label for="name">Name</label><br>
<input id="name" /><br>
<label for="desc">Description</label><br>
<input id="desc" /><br>
<input type="submit" value="Save" />