Skip to content

Instantly share code, notes, and snippets.

@necaris
necaris / pycheckers
Created February 7, 2012 17:01
My collection of Python correctness-checkers
#!/bin/bash
pyflakes "$1"
pep8 --repeat "$1"
true
@necaris
necaris / ipython_config.py
Created February 7, 2012 13:53
IPython config snippet that makes it work with virtualenv
# Configuration snippet to let system-wide IPython work with virtualenvs
# Code taken from Ahmed Soliman's post at:
# (http://www.ahmedsoliman.com/2011/09/27/use-virtualenv-with-ipython-0-11/)
# Tweaked by Rami Chowdhury
from os import environ
from os.path import join, sep
from sys import version_info
if version_info[0] > 2:
# Python 3.x doesn't define this, so for convenience, we do.
# https://gist.github.com/unbracketed/3380407
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import sys
import csv
import requests
@necaris
necaris / keybase.md
Created November 9, 2014 23:09
keybase proof

Keybase proof

I hereby claim:

  • I am necaris on github.
  • I am necaris (https://keybase.io/necaris) on keybase.
  • I have a public key whose fingerprint is 3BF7 81AD 3BD9 B5EF 67C8 E0DE EA69 CB29 A08D 8FD1

To claim this, I am signing this object:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/site-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/local/lib/python2.7/site-packages/pip/req.py", line 1435, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/pip/req.py", line 671, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/local/lib/python2.7/site-packages/pip/req.py", line 901, in move_wheel_files