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 matplotlib.cm as cm | |
# import numpy as np | |
# np.round(cm.viridis(np.arange(0, 1.2, 1/5)) * 255) | |
array([[ 68, 1, 84, 255], | |
[ 65, 68, 135, 255], | |
[ 42, 120, 142, 255], | |
[ 34, 168, 132, 255], | |
[122, 209, 81, 255], | |
[253, 231, 37, 255]]) |
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 | |
# capture the changed files that have been staged | |
changed_files=$(git diff --staged --name-only) | |
echo "Changed files: ${changed_files}" | |
for file in ${changed_files} | |
do | |
echo "Modifying ${file}" | |
yapf ${file} -i | |
git add ${file} | |
done |
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 json | |
import glob | |
import os | |
from os.path import join, basename | |
# install this with "conda install -c conda-forge python-graphviz" | |
import graphviz as gv | |
# path to your conda environment | |
path = os.environ.get('CONDA_PREFIX') | |
if path is 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
Jonathan Helmus's Talk: https://docs.google.com/presentation/d/18d5uGYUc7ZVrgABmz8wH4XdD8B8nAhCzRYwienPtZFE/edit#slide=id.p |
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 | |
CONDA_DOWNLOAD_LOCATION=$BUILD_DIR/miniconda.sh | |
CONDA_INSTALL_LOCATION=$BUILD_DIR/miniconda | |
if [ ! -f $CONDA_DOWNLOAD_LOCATION ]; then | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $CONDA_DOWNLOAD_LOCATION | |
fi | |
bash $CONDA_DOWNLOAD_LOCATION -b -p $CONDA_INSTALL_LOCATION |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
name: erics_env | |
dependencies: | |
- numpy | |
- matplotlib | |
- scikit-image |
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
$ conda build usaddress/ | |
Removing old build environment | |
BUILD START: usaddress-0.5.7-py35_0 | |
Using Anaconda Cloud api site https://api.anaconda.org | |
Fetching package metadata ............. | |
WARNING: conda-build appears to be out of date. You have version 1.21.4 but the | |
latest version is 1.21.5. Run | |
conda update -n root conda-build |
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
$ apm list | |
Built-in Atom Packages (89) | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.