Skip to content

Instantly share code, notes, and snippets.

/*
SublimeLinter default settings
*/
{
/*
Sets the mode in which SublimeLinter runs:
true - Linting occurs in the background as you type (the default).
false - Linting only occurs when you initiate it.
"load-save" - Linting occurs only when a file is loaded and saved.
@GlennTaylorDigital
GlennTaylorDigital / detect-swipes.js
Last active August 29, 2015 13:56
Detect swipes using jquery - handy for sliders etc
$this = $('.my-swipe-area');
var touch = {
start: false,
stop: false
};
$this.on('touchstart', function(e){
touch.start = e.originalEvent.touches[0].pageX;
});