Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nehalecky's full-sized avatar

Nicholaus (Nico) Halecky nehalecky

View GitHub Profile
@nehalecky
nehalecky / bootstrap-conda.sh
Last active February 17, 2017 20:50
Bootstrap to install Miniconda, with sane defaults (http://conda.pydata.org/miniconda.html)
#!/bin/bash
set -e
if [[ ! -v CONDA_INSTALL_PATH ]]; then
echo "CONDA_INSTALL_PATH not set, setting ..."
CONDA_INSTALL_PATH="/usr/local/bin/miniconda"
echo "Set CONDA_INSTALL_PATH to $CONDA_INSTALL_PATH"
fi
# 0. Specify Miniconda version
## 0.1 A few parameters
@nehalecky
nehalecky / install-py3-dataproc.sh
Last active January 18, 2016 20:56
Shell script to run install Python 3, make it default, and export PYTHONHASHSEED
#!/bin/bash
apt-get -y install python3
echo "export PYSPARK_PYTHON=python3" | tee -a /etc/profile.d/spark_config.sh /etc/*bashrc
echo "export PYTHONHASHSEED=123" | tee -a /etc/profile.d/spark_config.sh /etc/*bashrc /usr/lib/spark/conf/spark-env.sh
source ~/.bashrc
@nehalecky
nehalecky / setup_jupyter_notebook_with_plotly.py
Created January 7, 2016 23:48
Setup Jupyter Notebook with Plot.ly
# Can be copied to ~/.ipython/profile_default/startup/
import pandas as pd
import numpy as np
# Add plotly
import plotly
import plotly.plotly as py
from plotly.graph_objs import *
from plotly.offline import download_plotlyjs, init_notebook_mode, iplot
print("Plotly version: " + plotly.__version__) # version 1.9.x required

Keybase proof

I hereby claim:

  • I am nehalecky on github.
  • I am nehalecky (https://keybase.io/nehalecky) on keybase.
  • I have a public key whose fingerprint is 6A39 BED6 5A62 A515 5346 AC64 BD37 C15A 8575 88C0

To claim this, I am signing this object: