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 | |
#set -x | |
checkout () { | |
mkdir -p .config-backup | |
${GIT} checkout $@ > /dev/null 2>&1 | |
if [ $? = 0 ]; then | |
echo "Checked out config."; | |
else |
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
0x56C52278d33b5b6ccdAe728396AF5092B00C7A7d |
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
0xE5c7Ec8Fc1Fed0e86d76CB596090783C55478554 |
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/sh | |
# Build script for the project. | |
# For details on the basic form of this script, see https://notabug.org/akkartik/basic-build. | |
set -e # stop immediately on error | |
## prolog: environment defaults | |
test "$CC" || export CC=cc | |
test "$CFLAGS" || export CFLAGS="-g -O3" | |
# some additional flags for safety |
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
package memoize | |
import ( | |
"fmt" | |
"reflect" | |
) | |
// fptr is a pointer to a function variable which will receive a | |
// memoized wrapper around function impl. Impl must have 1 or more | |
// arguments, all of which must be usable as map keys; and it must |