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
template<typename> struct T { | |
}; | |
template<> struct T<int> { | |
static const int value = 1; | |
}; | |
template<> struct T<float> { | |
static const int value = 2; | |
}; |
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 | |
set -e -o pipefail | |
dev=${1:?usage: $0 <device name>} | |
dir="/sys/block/$dev" | |
if ! [[ -d "$dir" ]]; then | |
echo "$dev probably is not a block device (no $dir)" >&2 | |
exit 1 |
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 | |
put() { | |
for x in "$@"; do | |
echo -en "$x\0" | |
done | |
} | |
f() { | |
res=(' a b' 'c d') |
NewerOlder