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 notebookpipenv | |
set d (basename (pwd)) | |
pipenv install ipykernel $argv[1..-1] | |
pipenv run python -m ipykernel install --user --name=$d | |
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
#install docker on ubuntu | |
sudo apt-get remove docker docker-engine docker.io | |
sudo apt-get update | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
xenial \ | |
stable" | |
sudo apt-get update |
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
seen = set() | |
items = [x for x in items if not (x in seen or seen.add(x))] |
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
git clone --recursive https://github.com/dmlc/xgboost | |
cd xgboost | |
cp make/minimum.mk ./config.mk | |
make -j4 | |
cd python-package | |
sudo python setup.py install |
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" |
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
{ | |
"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
# 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
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
layout python3 | |
#ln -s .direnv/$(basename $VIRTUAL_ENV)/ .env |
OlderNewer