Skip to content

Instantly share code, notes, and snippets.

@Veve2
Veve2 / Git push deployment in 7 easy steps.md
Created August 4, 2017 09:34 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@Veve2
Veve2 / detect-private-browsing.js
Created February 22, 2017 15:06 — forked from cou929/detect-private-browsing.js
Detect private browsing mode (InPrivate Browsing or Incognito).
function retry(isDone, next) {
var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false;
var id = window.setInterval(
function() {
if (isDone()) {
window.clearInterval(id);
next(is_timeout);
}
if (current_trial++ > max_retry) {
window.clearInterval(id);