crontab -l
crontab -u username -l
/** | |
* @see https://stackoverflow.com/questions/28948383/how-to-implement-debounce-fn-into-jquery-keyup-event | |
* @see http://jsfiddle.net/bjb9s2w5/ | |
* @see https://learn.jquery.com/plugins/basic-plugin-creation/ | |
* | |
* Usage: | |
* | |
* ``` | |
* $('input').on('keyup', $.fn.debonce(function () { | |
* // do some ajax request... |
var redis = require("redis") | |
, subscriber = redis.createClient() | |
, publisher = redis.createClient(); | |
subscriber.on("message", function(channel, message) { | |
console.log("Message '" + message + "' on channel '" + channel + "' arrived!") | |
}); | |
subscriber.subscribe("test"); |
// http://stackoverflow.com/a/26227662/1527470 | |
const singleton = Symbol(); | |
const singletonEnforcer = Symbol(); | |
class SingletonEnforcer { | |
constructor(enforcer) { | |
if (enforcer !== singletonEnforcer) { | |
throw new Error('Cannot construct singleton'); | |
} |
/* @see https://www.innos.com/ru/#/intro */ | |
.intro__phone-screen, | |
.intro__phone-screen:after { | |
height: 575px; | |
position: absolute; | |
content: '' | |
} | |
.intro__phone-screen { | |
top: 57px; | |
left: 18px; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-type"> | |
<title>Site on maintenance...</title> | |
<style media="screen" type="text/css"> | |
body | |
{ | |
background: #f1f1f1; | |
font-family: "HelveticaNeue", Helvetica, Arial, sans-serif; |
Make sure brew is up to date:
brew update
brew upgrade
// @see https://getgrav.org/blog/grav-1.2-released | |
jQuery(document).ready(function() { | |
var NUM_CONFETTI = 75, | |
COLORS = [ | |
[85, 71, 106], | |
[174, 61, 99], | |
[219, 56, 83], | |
[244, 92, 68], | |
[248, 182, 70] | |
], |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |