I hereby claim:
- I am andrewmeissner on github.
- I am andrewmeissner (https://keybase.io/andrewmeissner) on keybase.
- I have a public key ASCyBgbG9I2NgE1l82pkgjKngE2E3AME1wb-xc6Xm_1J2wo
To claim this, I am signing this object:
#!/bin/bash | |
# remove all blank lines in go 'imports' statements, | |
# then sort with goimports | |
if [ $# != 1 ] ; then | |
echo "usage: $0 <filename>" | |
exit 1 | |
fi |
type arrayFlags []string | |
func (i *arrayFlags) String() string { | |
return strings.Join(*i, ",") | |
} | |
func (i *arrayFlags) Set(value string) error { | |
*i = append(*i, strings.Split(value, ",")...) | |
return nil | |
} |
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
key := "hello" | |
words := letterCasePermutation(key) | |
fmt.Println(words) |
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"strings" | |
) |
" Install vim-plug if not found | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
endif | |
" Run PlugInstall if there are missing plugins | |
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) | |
\| PlugInstall --sync | source $MYVIMRC |
#!/bin/bash | |
function setPath { | |
echo $PATH | grep -q "$1" | |
if [ $? -ne 0 ]; then | |
PATH="$PATH:$1" | |
fi | |
export PATH | |
} |
package main | |
import ( | |
"flag" | |
"fmt" | |
"os" | |
"strings" | |
) | |
package main() { |
// BROKEN - 18 MARCH 2020 - 1,2,3,4,5 PRODUCES INCORRECT RESULTS | |
package main | |
import "fmt" | |
func main() { | |
powerset := powerSet([]string{"1", "2", "3", "4"}) | |
fmt.Println(powerset) | |
} |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"log" | |
"time" | |
"github.com/spf13/viper" | |
_ "github.com/spf13/viper/remote" | |
) |