Skip to content

Instantly share code, notes, and snippets.

View ghego's full-sized avatar

Francesco Mosconi ghego

View GitHub Profile
@ghego
ghego / remove_output.py
Last active August 8, 2017 19:27 — forked from damianavila/remove_output.py
Remove output from IPython notebook from the command line (dev version 1.0)
"""
Usage: python remove_output.py notebook.ipynb [-o]
"""
import sys
import io
import os
from nbformat import read, write, current_nbformat
from argparse import ArgumentParser
def remove_outputs(nb):
@ghego
ghego / .gitconfig
Last active December 31, 2015 16:29 — forked from pksunkara/config
[user]
name = Francesco Mosconi
email = [email protected]
[core]
editor = subl
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[web]
browser = google-chrome
[instaweb]
brew update
brew versions FORMULA
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
#