duplicates = multiple editions
A Classical Introduction to Modern Number Theory,Kenneth IrelandMichael Rosen
A Classical Introduction to Modern Number Theory,Kenneth IrelandMichael Rosen
# Modified version of PowerMeta from | |
# http://www.pydanny.com/python-partials-are-fun.html | |
from functools import partial | |
def power(base, exponent): | |
return base ** exponent | |
logging.basicConfig( | |
format='%(levelname)s %(asctime)s %(message)s', | |
filename='/tmp/EJABBERD_DEBUG_LOG', | |
datefmt='%m-%d-%Y %I:%M:%S %p', | |
level=logging.DEBUG) | |
flog = logging.debug | |
flog("Hey !") |
<snippet> | |
<content><![CDATA[import ipdb; ipdb.set_trace()]]></content> | |
<tabTrigger>ipdb</tabTrigger> | |
<scope>source.python</scope> | |
<description>ipdb</description> | |
</snippet> |
# Credits goto: Stackoverflow user gnperumal; http://stackoverflow.com/a/12172706/1114457 | |
# simple bash function list all the users in a group | |
# requires a python installation | |
function listusersofgroup { | |
python -c "import grp; print grp.getgrnam('$1')[3]" | |
} | |
# Usage: listusersofgroup <group-name> | |
# Gives: |
language: | |
- cpp | |
compiler: | |
- gcc | |
before_install: | |
- sudo apt-get update | |
install: |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).