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
// https://blog.tompawlak.org/number-currency-formatting-javascript | |
function formatNumber (num) { | |
return num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,") | |
} | |
console.info(formatNumber(2665)); // 2,665 | |
console.info(formatNumber(102665)); // 102,665 | |
console.info(formatNumber(111102665)); // 111,102,665 |
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
repos=( | |
"/c/projects/project-1" | |
"/c/projects/project-2" | |
"/c/projects/project-3" | |
) | |
echo "" | |
echo "Checking" ${#repos[@]} "repositories for status" | |
for repo in "${repos[@]}" |
- Download xcode
- When download is finished, open Xcode.app in your /Applications folder and agree to the licence
- Install the Xcode command line tools:
xcode-select --install
- Download Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Check for any conflicts or problems
brew doctor
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
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": true, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": false, | |
"quotes": "single", |
NewerOlder