This Web Components keeps the year in your copyright notice up-to-date.
export { CopyrightYearElement }
const name = "copyright-year";
class CopyrightYearElement extends HTMLSpanElement {
cd fonts | |
mv *.ttf /usr/share/fonts/truetype | |
cd /usr/share/fonts/truetype | |
mkfontscale | |
mkfontdir | |
fc-cache | |
xset fp rehash |
const { watch, src, dest, parallel } = require('gulp'); | |
const sass = require('gulp-sass'); | |
const cssnano = require('cssnano'); | |
const sourcemaps = require('gulp-sourcemaps'); | |
const postcss = require('gulp-postcss'); | |
const autoprefixer = require('autoprefixer'); | |
const concat = require('gulp-concat'); | |
const browserSync = require('browser-sync'); | |
const newer = require('gulp-newer'); | |
const imagemin = require('gulp-imagemin'); |
Download CURL from the following
tar xzvf curl-7.68.0.tar.gz
cd curl-7.68.0
./configure --with-ssl
make
sudo make install
// Converts `1234567` => `"1,234,567" | |
// Does not support decimals yet | |
function formatNumberWithCommas (number) { | |
return ('' + number) // Convert to a string | |
.split('').reverse().join('') // Reverse the order of the characters (which are all digits at this point) | |
.replace(/(...)/g, '$1,') // Insert a comma after every three digits | |
.split('').reverse().join('') // Un-reverse the characters | |
.replace(/^,/, ''); // Remove any commas that were added to the beginning (i.e. if the number of digits was a multiple of three) | |
}; |
const divider = Array(20).join('-'); | |
// output | |
// -------------------- |