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
""" | |
Code to plot multiple histograms on a single chart. | |
Inspired by: | |
http://stackoverflow.com/questions/6871201/plot-two-histograms-at-the-same-time-with-matplotlib | |
""" | |
from __future__ import division | |
import random |
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
# export this environment variable to the appropriate path containing | |
# `libssl` and `libcrypto` versions 1.0.0 (and not 0.9.7/0.9.8!!!) | |
export DYLD_FALLBACK_LIBRARY_PATH=/Users/ali/miniconda2/envs/lms/lib:$DYLD_FALLBACK_LIBRARY_PATH | |
# OR try this without mucking around with environment variables! | |
# My StackOverflow solution: | |
# http://stackoverflow.com/a/36872624/5076471 | |
brew install --upgrade openssl | |
brew unlink openssl && brew link openssl --force |
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
# encrypt | |
openssl enc -aes-256-cbc -salt -a -in twn.csv -out twn.csv.enc | |
# decrypt | |
openssl enc -aes-256-cbc -d -a -in twn.csv.enc -out twn.csv |
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 list | grep \<pip\>) | awk '{print $1;}') | xargs pip uninstall -y |