push origin --delete <branchName>
git push origin --tags
merge -s recursive -Xtheirs upstream/master
reset --soft HEAD^
git rebase --ignore-date
git add --all <path>
reset a branch to its origin
class C(B): | |
def method(self, arg): | |
super(C, self).method(arg) |
To add autocompletion to the python shell, add the following export into your .bashrc file: | |
export PYTHONSTARTUP=/home/<user>/.pythonstartup | |
Where <user> is your username, and .pythonstartup is a file containing the following two lines: | |
import rlcompleter, readline | |
readline.parse_and_bind('tab: complete') | |
To test if the change worked, start a python shell and type |
# paste this on the shell | |
startgen () { while ! pwgen -nyc | grep "^$1"; do :; done } | |
# then use it like | |
# startgen B |
svn merge --dry-run -rHEAD:2650 . |
exec(compile(open(__file__).read(), __file__, 'exec')) | |
from https://github.com/pypa/pip/issues/45 |
>>> from dateutil import parser | |
>>> f['2011-07-02T00:00:00']=f['2011-07-02T00:00:00'].map(parser.parse) |
Ctrl-V Ctrl-<Char> |
""" Blame All for svn, like p4 annotate -a. | |
Ned Batchelder. | |
http://nedbatchelder.com/code/utilities/blameall.html | |
Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php | |
""" | |
from difflib import SequenceMatcher | |
import optparse, re, subprocess, sys |
push origin --delete <branchName>
git push origin --tags
merge -s recursive -Xtheirs upstream/master
reset --soft HEAD^
git rebase --ignore-date
git add --all <path>
reset a branch to its origin
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Force-Directed Graph</title> | |
<!-- | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.0.1/d3.v3.min.js"></script> | |
--> | |
<script type="text/javascript" src="d3.v3.min.js"></script> | |
</head> | |
<body> |