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
cat $1 | sed 's/[^,]*,//' > $2 |
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
sed -i '' '1i\ | |
"$2"\' $1 |
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
chsh -s $(which fish) |
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
brew update || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew upgrade | |
fish --version || brew install fish | |
omf --version || curl -L https://get.oh-my.fish | fish | |
omf install agnoster | |
omf theme agnoster | |
brew tap homebrew/cask-fonts | |
brew cask install font-hack-nerd-font | |
direnv --version || brew install direnv | |
pyenv --version || brew install pyenv |
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
layout python3 | |
#ln -s .direnv/$(basename $VIRTUAL_ENV)/ .env |
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
function project | |
cd $HOME/projects | |
cp -r template $argv | |
cd $argv | |
direnv allow . | |
git init | |
git add . | |
git commit -m "initial commit" | |
tree -aL 2 . | |
end |
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
# pyenv | |
set -x PYENV_ROOT $HOME/.pyenv | |
set -U PATH $PYENV_ROOT/bin $PATH | |
source (pyenv init - | psub) | |
set -e _OLD_FISH_PROMPT_OVERRIDE | |
set -e _OLD_VIRTUAL_PYTHONHOME | |
set -e _OLD_VIRTUAL_PATH | |
# direnv | |
direnv hook fish | source |
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
{ | |
"Working Directory" : "\/Users\/adam.marples", | |
"Prompt Before Closing 2" : false, | |
"Selected Text Color" : { | |
"Green Component" : 0, | |
"Red Component" : 0, | |
"Blue Component" : 0 | |
}, | |
"Rows" : 58, | |
"Ansi 11 Color" : { |
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
create or replace file format example_file_format_name | |
type = 'csv' | |
field_delimiter = ',' | |
skip_header = 1 | |
date_format = 'DD/MM/YYYY'; | |
create or replace stage example_stage_name | |
file_format = example_file_format_name; |
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
{ | |
"embeddings": [ | |
{ | |
"tensorName": "movielens-embeddings", | |
"tensorShape": [ | |
26744, | |
30 | |
], | |
"tensorPath": "https://raw.githubusercontent.com/adammarples/movie-embeddings/master/tensors.tsv", | |
"metadataPath": "https://raw.githubusercontent.com/adammarples/movie-embeddings/master/metadata.tsv" |
NewerOlder