- run setup-ubuntu-lucid.sh
- google-chrome (http://www.google.com/chrome?hl=en)
- Dropbox (https://www.dropbox.com/downloading)
- ZumoDrive (http://www.zumodrive.com/download/zumodrive)
- mendelay desktop (http://www.mendeley.com/download-mendeley-desktop/ubuntu)
- paco (http://sourceforge.net/projects/paco/files/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import uu | |
import sys | |
if __name__ == '__main__': | |
filepath = sys.argv[1] | |
filename = sys.argv[2] | |
uu.encode(open(filepath), sys.stdout, filename) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" | |
sudo apt-get update | |
# http://www.ubuntulinux.jp/products/JA-Localized#repository | |
wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | sudo apt-key add - | |
wget -q https://www.ubuntulinux.jp/ubuntu-jp-ppa-keyring.gpg -O- | sudo apt-key add - | |
sudo wget https://www.ubuntulinux.jp/sources.list.d/lucid.list -O /etc/apt/sources.list.d/ubuntu-ja.list | |
sudo apt-get update | |
sudo apt-get install \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
objs=kaplan_yorke.o | |
slib=kaplan_yorke.so | |
all: $(slib) | |
kaplan_yorke.so: kaplan_yorke.o | |
gcc -shared -o $@ $< | |
kaplan_yorke.o: kaplan_yorke.c | |
gcc -c $< -fPIC -O3 -ftree-vectorizer-verbose=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Module docstring""" | |
def myfunc(): | |
"""Function docstring""" | |
print __doc__ | |
print myfunc.__doc__ | |
class MyClass(object): | |
"""Class docstring""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyClass(object): | |
def m1(self): print 1 | |
def m2(self): print 2 | |
def m3(self): print 3 | |
ms1 = [m1, m2, m3] | |
def __init__(self): | |
self.ms2 = [self.m1, self.m2, self.m3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import json | |
import urllib | |
RE_FIRST_PARENTHESIS = re.compile('^([^\{]*){([^}]*)}(.*)$') | |
def parse_parenthesis(string): | |
""" | |
>>> parse_parenthesis('aaa {bbb,ccc} ddd') | |
['aaa bbb ddd', 'aaa ccc ddd'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
try: | |
import cPickle as pickle | |
except: | |
import pickle | |
import re | |
def iteritemsdeep(dct): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build/* | |
waf-* | |
.waf* | |
.lock-wafbuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export JPY=path/to/j2/j.py | |
source path/to/j2/j.sh | |
function j_precmd(){ | |
j --add "$(pwd -P)" | |
} | |
precmd_functions+=(j_precmd) | |
compdef _files j |