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
// create number format | |
currencyFormat = new Intl.NumberFormat("sv-SE", { | |
style: "currency", | |
currency: "sek", | |
currencyDisplay: "symbol", | |
trailingZeroDisplay: "stripIfInteger", | |
}); | |
// Switches input type to text when it has value to render (`.on("blur")`) as ex. "100 000,23 kr." | |
// but switches back to number on focus (`.on("focus")`) to use its inbuilt number |
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
#!/usr/bin/env bash | |
# This script will merge the current branch into the provided branch or release/dev branch | |
# and then switch back to the current branch. | |
# Save as quick-merge in your path (ex. ~/bin/quick-merge) and make executable, then source it from `.bashrc` or `.zshrc` | |
# by adding the folder to your path `export PATH="$HOME/bin:$PATH"` | |
# The script can be used as a base with aliases for other branches eg. `alias mprod='quick-merge release/prod'` | |
set -e |