Skip to content

Instantly share code, notes, and snippets.

View abogartz's full-sized avatar

Alex Bogartz abogartz

View GitHub Profile
@abogartz
abogartz / AverageLeap.as
Last active December 14, 2015 00:39
Averaging out Leap Motion frame positions to avoid jitter.
public function averageFrames(frame:Frame):void {
if (!frame.isValid()) {
trace("invalid frame")
return;
}
if (!frame.hands[0].isValid() || !frame.hands[1].isValid()) {
trace("invalid hand")
return;
}
@abogartz
abogartz / cloudSettings
Last active May 25, 2017 21:28
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-05-25T21:28:53.712Z","extensionVersion":"v2.8.0"}