Skip to content

Instantly share code, notes, and snippets.

@ruxi
ruxi / NBextension.ipynb
Last active March 11, 2016 04:25
nbextension/NBextension.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ruxi
ruxi / lazy_make_init.ipynb
Last active March 14, 2016 21:53
notebooks/gists/lazy_make_init.py.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ruxi
ruxi / GitHub protocol comparison.md
Created March 11, 2016 04:39
A comparison of protocols offered by GitHub (for #git on Freenode).

Primary differences between SSH and HTTPS. This post is specifically about accessing Git repositories on GitHub.

Protocols to choose from when cloning:

plain Git, aka git://github.com/

  • Does not add security beyond what Git itself provides. The server is not verified.

    If you clone a repository over git://, you should check if the latest commit's hash is correct.

@ruxi
ruxi / d3_in_jupyter_guide.ipynb
Last active April 6, 2016 22:02
guide to D3 in jupyter notebooks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ruxi
ruxi / Env-specific Notebook Kernels.ipynb
Last active October 18, 2016 21:33
NBEnvKernels/Env-specific Notebook Kernel.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ruxi
ruxi / R_affy.ipynb
Created June 3, 2016 15:57
R_affy.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ruxi
ruxi / make_conda_env.sh
Created July 21, 2016 18:38
bash script to make basic conda env
%%writefile make_conda_env.sh
#!/usr/bin/env bash
# author: github.com/ruxi
# reproducibly create conda env
read -p "Create new conda env (y/n)?" CONT
if [ "$CONT" == "n" ]; then
echo "exit";
else
@ruxi
ruxi / make_conda_env.sh
Created July 21, 2016 18:38
bash script to make basic conda env
%%writefile make_conda_env.sh
#!/usr/bin/env bash
# author: github.com/ruxi
# reproducibly create conda env
read -p "Create new conda env (y/n)?" CONT
if [ "$CONT" == "n" ]; then
echo "exit";
else
@ruxi
ruxi / nbmerge.py
Created November 10, 2016 19:47 — forked from fperez/nbmerge.py
Merge/concatenate multiple IPython notebooks into one.
#!/usr/bin/env python
# Note, updated version of
# https://github.com/ipython/ipython-in-depth/blob/master/tools/nbmerge.py
"""
usage:
python nbmerge.py A.ipynb B.ipynb C.ipynb > merged.ipynb
"""
import io