Skip to content

Instantly share code, notes, and snippets.

View yepninja's full-sized avatar

Yevgeny Petukhov yepninja

View GitHub Profile
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="e@alanev.ru"
CORRECT_NAME="Yevgeny Petukhov"
CORRECT_EMAIL="petukhov.yevgeny@gmail.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@yepninja
yepninja / swipe.js
Created October 2, 2016 13:24 — forked from SleepWalker/swipe.js
A simple swipe detection on vanilla js
var touchstartX = 0;
var touchstartY = 0;
var touchendX = 0;
var touchendY = 0;
var gesuredZone = document.getElementById('gesuredZone');
gesuredZone.addEventListener('touchstart', function(event) {
touchstartX = event.screenX;
touchstartY = event.screenY;