Skip to content

Instantly share code, notes, and snippets.

View emekaorji's full-sized avatar
💫
BUIDLing

Emeka Orji emekaorji

💫
BUIDLing
View GitHub Profile
@ethanny2
ethanny2 / doubleTap.js
Created May 27, 2020 00:46
Vanilla JavaScript Double tap event detection on mobile using setTimeout
/* Based on this http://jsfiddle.net/brettwp/J4djY/*/
function detectDoubleTapClosure() {
let lastTap = 0;
let timeout;
return function detectDoubleTap(event) {
const curTime = new Date().getTime();
const tapLen = curTime - lastTap;
if (tapLen < 500 && tapLen > 0) {
console.log('Double tapped!');
event.preventDefault();
@m-tymchyk
m-tymchyk / react-native-open-external-link.js
Created October 30, 2018 09:00
React Native / How to open external link by tap
@rvl
rvl / git-pushing-multiple.rst
Created February 9, 2016 11:41
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just