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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"io" | |
fdk "github.com/fnproject/fdk-go" | |
) |
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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"io" | |
"os" | |
) |
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
Download the gist containing starter.vimrc. | |
Once you have that done, you will need to use an SFTP client of your choice | |
to move starter.vimrc to your home directory. FileZilla is an option if you | |
don't have one already. | |
Link: https://filezilla-project.org | |
You will just need the client. |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.6.+' | |
} | |
} |
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
#!/bin/bash | |
# | |
# run with ./goinstall.bash USERNAME=yourusernamehere | |
# e.g. ./goinstall.bash USERNAME=rpa0003 | |
# Install latest Go from source | |
# Setup GOROOT and GOPATH | |
# Install go.tools | |
# get go from source | |
sudo apt-get install mercurial |
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
#!/bin/sh | |
status=0 | |
IFS=$'\n' | |
for file in $(git diff --cached --name-only | grep -e '\.go$'); do | |
badfile="$(git --no-pager show :"$file" | gofmt -l)" | |
if test -n "$badfile" ; then | |
echo "git pre-commit check failed: file needs gofmt: $file" | |
status=1 | |
fi |