git commit --amend --author="Rob Pataki <[email protected]>"
git remote prune origin
git commit --amend --author="Rob Pataki <[email protected]>"
git remote prune origin
We use a form of Git flow to maintain a stable master
branch, and work off feature branches to introduce new features and other code updates. The feature branches are tied to JIRA tickets.
To keep our git log clean and tidy we use git's rebase strategy. That means that instead of merging commits in and out of the master branch (resulting in many ugly merge commits) we always keep our own feature branch's commits on top of the existing master branch commits.
You can read more about the rebase strategy here: https://www.atlassian.com/git/tutorials/merging-vs-rebasing.
(function() { | |
function pruneSpaces(el) { | |
el.className = el.className.replace(/^\s+|\s+$/g, ''); | |
} | |
function toggleClass(el, className) { | |
if (hasClass(el, className)) { | |
removeClass(el, className); | |
} else { | |
addClass(el, className); |
Use certbot
./certbot-auto renew --dry-run
...
./certbot-auto renew --quiet --no-self-upgrade
// Easing function variables - http://easings.net/#easeOutQuint | |
// SINE | |
$ease-in-sine: cubic-bezier(0.47, 0, 0.745, 0.715); | |
$ease-out-sine: cubic-bezier(0.39, 0.575, 0.565, 1); | |
$ease-in-out-sine: cubic-bezier(0.445, 0.05, 0.55, 0.95); | |
// QUAD | |
$ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); | |
$ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); |
/*! | |
* Dot Connector | |
* Rob Pataki [[email protected]] [https://robp.io] | |
* Date: 2017-05-04 | |
* Demo: https://jsfiddle.net/robertp/zsrn3e5o/ | |
*/ | |
var NS = 'http://www.w3.org/2000/svg'; | |
var DotCon = function(artboardElement) { |
function addUp(arr) { | |
return arr.reduce(function(a, b){return a+b;}, 0) | |
} | |
var arr = [1, 2, 3, 4, 5]; | |
var sum = addUp(arr); //15 |