A gauge made with css
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
#!/bin/bash | |
#================================================================ | |
# Let's Encrypt renewal script for Nginx on Ubuntu/Debian | |
# @author Erika Heidi<[email protected]> | |
# Edited by Sam Bellen <@sambego> | |
# Usage: ./le-renew.sh [base-domain-name] | |
# More info: http://do.co/1mbVihI | |
#================================================================ | |
domain=$1 | |
le_path='/opt/letsencrypt' |
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
/* | |
* A simple function to animate a property of an element to a new value. | |
*/ | |
const animate = function animate(element, property, value, duration) { | |
const fps = 60; | |
const timeout = duration / (1000 / fps); | |
const startTime = new Date(); | |
const startValue = element[property]; | |
const step = function step() { | |
const currentTime = new Date(); |