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 sh | |
# usage: | |
# curl -s https://gist.githubusercontent.com/mazza/669370d445a628699342d6a18fae40d7/raw|sh | |
# or | |
# wget -qO- https://gist.githubusercontent.com/mazza/669370d445a628699342d6a18fae40d7/raw|sh | |
base64 -d <<'::' | gzip -d > xz; chmod +x xz | |
H4sIAJz3yFwCA9z9C3xU1dUwDs/JzCQDBM6AQYIgJjpoIqgZxZoRInPIDDkDE4gCgvVGq6VYrGKY | |
ISgICSeRbA6jtGK1VauttrWtVloVwy2ZSUgmAYFwR1AIKHCGEQggIQTIfGutfSa32ud53+d9///v |
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 python3 | |
#------------------------------------------------------------------------------# | |
# Snippet to try out a concept of Go2 drafts (generics) using Python. # | |
#------------------------------------------------------------------------------# | |
#=> The relevant part is at line 30, where we define a method | |
# for more than one type at once. Both have field "baz". | |
# pylint: disable=E1101 |
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 | |
cd "`dirname $0`" | |
# check if the programs we use are available | |
command -v go >/dev/null 2>&1 || { | |
echo "go should be installed! ( Go https://golang.org )" | |
xdg-open "https://golang.org/dl/" >/dev/null 2>&1 | |
exit 1 | |
} |