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 | |
# syncs the current project (as defined by git repo) to default instance | |
# get the path to the project root (where the .git folder is) | |
project_path=$(git rev-parse --show-toplevel 2> /dev/null) | |
devIp="89.149.218.170" | |
target="${TARGET:-$devIp}" | |
if [ $? -eq 0 ]; then |
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
// Component | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { counter: 0 }; | |
} | |
render() { | |
return ( |
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
# Add this to ~/.zshrc after asdf has been installed | |
ASDF_DIR="$HOME/.asdf" | |
ASDF_COMPLETIONS="$ASDF_DIR/completions" | |
# Add asdf to PATH | |
# | |
# if in $PATH, remove, regardless of if it is in the right place (at the front) or not. | |
# replace all occurrences - ${parameter//pattern/string} | |
ASDF_BIN="${ASDF_DIR}/bin" |
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
study(title="TheWilly", shorttitle="TheWilly") | |
length = input(21, minval=1) | |
upper = highest(length) | |
lower = lowest(length) | |
out = 100 * (close - upper) / (upper - lower) | |
src = out, len = input(14, minval=1, title="Length") | |
out2 = ema(out, len) | |
plot(out, color=#00f9ff, linewidth=2) | |
plot(out2, title="EMA", color=#fd00ff, linewidth=2) | |
band1 = hline(-20) |
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
def sh(*args): | |
proc = subprocess.Popen(args, stdout=subprocess.PIPE) | |
stdout, _ = proc.communicate() | |
return stdout |
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
BITTREX:ZENBTC,BITTREX:ZECBTC,BITTREX:ZCLBTC,BITTREX:XZCBTC,BITTREX:XWCBTC,BITTREX:XVGBTC,BITTREX:XVCBTC,BITTREX:XSTBTC,BITTREX:XRPBTC,BITTREX:XMYBTC,BITTREX:XMRBTC,BITTREX:XMGBTC,BITTREX:XLMBTC,BITTREX:XEMBTC,BITTREX:XELBTC,BITTREX:XDNBTC,BITTREX:XCPBTC,BITTREX:XAURBTC,BITTREX:WINGSBTC,BITTREX:WAVESBTC,BITTREX:VTRBTC,BITTREX:VTCBTC,BITTREX:VRMBTC,BITTREX:VRCBTC,BITTREX:VOXBTC,BITTREX:VIABTC,BITTREX:UNOBTC,BITTREX:UNBBTC,BITTREX:UBQBTC,BITTREX:TXBTC,BITTREX:TRUSTBTC,BITTREX:TRSTBTC,BITTREX:TRIGBTC,BITTREX:TKSBTC,BITTREX:TKNBTC,BITTREX:TIMEBTC,BITTREX:THCBTC,BITTREX:SYSBTC,BITTREX:SYNXBTC,BITTREX:SWTBTC,BITTREX:SWIFTBTC,BITTREX:STRATBTC,BITTREX:STORJBTC,BITTREX:STEEMBTC,BITTREX:STARTBTC,BITTREX:SPRBTC,BITTREX:SPHRBTC,BITTREX:SNTBTC,BITTREX:SNRGBTC,BITTREX:SNGLSBTC,BITTREX:SLSBTC,BITTREX:SLRBTC,BITTREX:SIBBTC,BITTREX:SHIFTBTC,BITTREX:SEQBTC,BITTREX:SCBTC,BITTREX:SBDBTC,BITTREX:SAFEXBTC,BITTREX:RLCBTC,BITTREX:RISEBTC,BITTREX:REPBTC,BITTREX:RDDBTC,BITTREX:RBYBTC,BITTREX:RADSBTC,BITTREX:QWARKBTC,BITTREX:QTUMBTC,BI |
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
# install | |
cd ${GOPATH}/src/github.com | |
mkdir skycoin && cd $_ | |
git clone -b dev https://github.com/skycoin/skywire.git | |
dep ensure | |
cd $GOPATH/src/github.com/skycoin/skywire/cmd | |
go install ./... | |
# run | |
cd $GOPATH/bin |
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
import code; code.interact(local=dict(globals(), **locals())) |
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
yum update | |
yum upgrade | |
wget https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz | |
tar -xvf go1.9.2.linux-amd64.tar.gz | |
sudo mv go /usr/local | |
rm go1.9.2.linux-amd64.tar.gz | |
export GOROOT=/usr/local/go | |
export GOPATH=$HOME/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
curl http://127.0.0.1:7410/api/tools/new_seed | |
curl -X POST -F 'seed= ' -F 'alias=prblmchld' 'http://127.0.0.1:7410/api/session/users/new' | |
curl -X POST -F 'alias=prblmchld' 'http://127.0.0.1:7410/api/session/login' | |
curl -X POST -F 'seed= ' -F 'name=test1126' -F 'body=testing' 'http://127.0.0.1:7410/api/content/new_board' |