This Web Components keeps the year in your copyright notice up-to-date.
export { CopyrightYearElement }
const name = "copyright-year";
class CopyrightYearElement extends HTMLSpanElement {
// 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) | |
}; |
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
const divider = Array(20).join('-'); | |
// output | |
// -------------------- |
Download maven binary https://maven.apache.org/download.cgi
Extract maven
sudo tar zxvf apache-maven-*.tar.gz -C /usr/local/