This file contains hidden or 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
// No TypeScript, but statically typed | |
let add = (a, b) => a + b; |
This file contains hidden or 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
INSTALL_URL="https://releases.nixos.org/nix/nix-2.3.10/install" | |
# Install Nix (package manager) | |
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | |
sh -c "$(curl -L $INSTALL_URL)" | |
elif [[ "$OSTYPE" == "darwin"* ]]; then | |
sh -c "$(curl -L $INSTALL_URL)" --darwin-use-unencrypted-nix-store-volume | |
else | |
echo "Unsupported platform :(" | |
return |
OlderNewer