Skip to content

Instantly share code, notes, and snippets.

var customButtonsCreated = false,
addInfoLinks = function () {
"use strict";
};
$(document).ajaxComplete(function (event, xhr, settings) {
"use strict";
console.log("document.ajaxComplete has fired: " + event + "; " + xhr + "; " + settings.url)
// If the main XMLHttpRequest has completed, update the window.
var accelFilter = function ( x, y, z ) {
//ramp-speed - play with this value until satisfied (value is a float number)
var kFilteringFactor = 0.1,
//last result storage - keep definition outside of this function, eg. in wrapping object (values are floats)
accel[3],
highPassFilter = function () {
//acceleration.x,.y,.z is the input from the sensor