Skip to content

Instantly share code, notes, and snippets.

View montefra's full-sized avatar

Francesco Montesano montefra

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@montefra
montefra / Test_svg.ipynb
Created August 30, 2013 16:34
svg vn png inline figures and ax.axvline problem
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@montefra
montefra / parse_docstring_argparse.ipynb
Created June 16, 2014 19:21
parse docstring take 2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@montefra
montefra / parse_docstring_argparse.ipynb
Created August 22, 2014 21:49
Add customized argparse help action to repond to `-h` and `--help` in slightly different ways
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# removed all the packages installed by freetype-devel and libxft-dev
(py3) -> sudo zypper install freetype-devel
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 2 NEW packages are going to be installed:
freetype-devel libttf2
@montefra
montefra / setup.cfg
Created June 2, 2015 20:30
setup.py config file
[nosetests]
verbosity = 2
detailed-errors = 1
nologcapture = 1
with-doctest = true
with-coverage = true
cover-package = libvhc
cover-erase = true
@montefra
montefra / nose.log
Created June 2, 2015 20:40
logging of nose
# from python setup.py nosetests --verbosity=4 > nose.log 2>&1
['nose>=1', 'coverage', 'pyhetdex']
running nosetests
running egg_info
writing dependency_links to vhc.egg-info/dependency_links.txt
writing requirements to vhc.egg-info/requires.txt
writing top-level names to vhc.egg-info/top_level.txt
writing entry points to vhc.egg-info/entry_points.txt
writing vhc.egg-info/PKG-INFO
@montefra
montefra / test_hang.py
Created June 11, 2015 08:57
test nosetests hang in python 3
import multiprocessing
_manager = multiprocessing.Manager()
_lock = _manager.Lock()
_dict = _manager.dict()
def foo():
print("test")