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
| { | |
| "name": "Iceberg", | |
| "foreground": "#c6c8d1", | |
| "background": "#161821", | |
| "black": "#161821", | |
| "red": "#e27878", | |
| "green": "#b4be82", | |
| "yellow": "#e2a478", | |
| "blue": "#84a0c6", | |
| "purple": "#a093c7", |
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
| /// <summary> | |
| /// INotifyDataErrorInfoをサポートするBindableBase | |
| /// </summary> | |
| class ValidatableModelBase : BindableBase, INotifyDataErrorInfo | |
| { | |
| private ErrorsContainer<string> _errors; | |
| public event EventHandler<DataErrorsChangedEventArgs> ErrorsChanged; | |
| public IEnumerable GetErrors(string propertyName) |
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
| declare -i argc=0 | |
| declare -a argv=() | |
| while (( $# > 0 )); do | |
| case "$1" in | |
| - | -- ) | |
| shift | |
| argc+=$# | |
| argv+=("$@") | |
| break | |
| ;; |
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
| #!/bin/bash | |
| # required variables | |
| required_vars=("FOO" "BAR" "BAZ") | |
| # check defined | |
| for VAR_NAME in "${required_vars[@]}"; do | |
| eval var_temp='$'$VAR_NAME | |
| if [[ -z "$var_temp" ]]; then | |
| echo "$VAR_NAME is undefined." 1>&2 |