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 | |
# Format Go code | |
gofiles=$(find . -name "*.go" | tr '\n' ' ') | |
[ -z "$gofiles" ] && exit 0 | |
unformatted=$(gofmt -l $gofiles) | |
if [ -z "$unformatted" ]; then | |
echo "All Go files are formatted correctly." | |
else |
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
#################### | |
# Configs | |
#################### | |
# Set <C-a> as prefix | |
set -g prefix C-Space | |
# Set mouse scroll ON | |
set -g mouse on |
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
syntax on | |
set number " Show line number | |
set ruler " Show the line and column number of the cursor | |
set textwidth=0 " Hard warp long lines as you type them | |
set modeline " Enable modeline | |
set linespace=0 " Set line spacing to minium | |
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J) | |
set splitbelow " Horizontal split below current | |
set splitright " Vertical split to right of current |
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
const head = x => _ => x; | |
const tail = _ => y => y; | |
const arr = x => xs => f => f(x)(xs); | |
const none = () => null; | |
const memorize = f => { | |
const bind = xs => _x => y => { | |
if (xs === none) { | |
return bind(arr({arg: y, ret: f(y)})(_x))(none); | |
} |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jun 13 23:27:45 2018 | |
@author: spand | |
""" | |
import numpy as np | |
import pandas as pd | |
import pickle, string, time |