- Example: change
- 01 Blah
to- 01 - Blah
- Original Text field:
( - [0-9][0-9] )
- New Text field:
$1-
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Colour scheme: https://coolors.co/f61067-5e239d-00f0b5-6decaf-f4f4ed | |
var NS = 'http://www.w3.org/2000/svg'; | |
var Victor = function(artboardElementSelector) { | |
if (typeof artboardElementSelector === 'string') { | |
this.setArtboard(artboardElementSelector); | |
} | |
this.connections = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getTimeString = function(timeInMs) { | |
var delim = ":"; | |
var hours = Math.ceil(timeInMs / (1000 * 60 * 60) % 60); | |
var minutes = Math.floor(timeInMs / (1000 * 60) % 60); | |
var seconds = Math.floor(timeInMs / 1000 % 60); | |
hours = hours < 10 ? '0' + hours : hours; | |
minutes = minutes < 10 ? '0' + minutes : minutes; | |
seconds = seconds < 10 ? '0' + seconds : seconds; | |
return hours + delim + minutes + delim + seconds; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* 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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
Use certbot
./certbot-auto renew --dry-run
...
./certbot-auto renew --quiet --no-self-upgrade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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); |