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
#!/usr/bin/env bash | |
# Function definitions | |
# -------------------- | |
# trim leading & trailing whitespace chars | |
trim() { | |
local var="$1" | |
var="${var#"${var%%[![:space:]]*}"}" # trim leading whitespace chars | |
var="${var%"${var##*[![:space:]]}"}" # trim trailing whitespace chars |
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
'This language is tortured, I tell you | |
Dim variable As New Dictionary(Of String, Boolean) From {{"Dumb", True}, {"Idiotic", True}} |