| Type | Initial Value |
| boolean | false |
| char | ‘\u0000′ |
| byte, short, int, long | 0 |
| float, double | +0.0 |
| object reference | null |
git clone http://git.example.com/git/example.git my_abc
git clone will give you the whole repository.
git tag -llist tags
git checkout -b <new_branch_name> <tag_name>
create a new branch from
git checkout <branch_name>
Switch to a new branch ‘branch_name’
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/perl -w @isbn = ( "9789861058092", "9789861053134", "9789861050355", "9789861044965", "9789861039855", "9789861036182", "9789861031958", "9789861027364", "9789861022499"); @s = reverse @isbn; print join "\n",@s,"\n"; |
result:
9789861022499
9789861027364
9789861031958
9789861036182
9789861039855
9789861044965
9789861050355
9789861053134
9789861058092
拍決acPorts憟隞嗥頂蝯曹摰鋆 http://www.macports.org/
sudo port install global
隞 trace lftp source code 箔
銝tarball
wget -c http://ftp.yars.free.net/pub/source/lftp/lftp-4.1.1.tar.gz
閫憯蝮
tar zxvf lftp-4.1.1.tar.gzsource code folder
cd lftp-4.1.1瑁 htags 靘Y source code 蝬脤
htags -g -Fnsa
閬撠質 HTML 桅銝剖銝 cgi-bin 摮桅啣 .htaccess嚗
Options +ExecCGI AddHandler cgi-script .cgi
ps. 雿 Mac OS X 10.6 銝曆箸暻潭迤蝣箄 CGI-BIN 函寞嚗隞交急⊥撠皛踹舀嚗瘝脩仿閰脫暻潔g
ref1: http://chunchaichang.blogspot.com/2010/05/gtags-trace-code.html
ref2: http://williewu.blogspot.com/2007/02/gnu-global-souce-code-tag-system.html
ref3: http://welkinchen.blogspot.com/2009/10/gnu-global.html
摰鋆
tar zxvf Django-*.tar.gz
cd Django-*.
sudo python setup.py install
銝啣獢
~/djcode$ django-admin.py startproject mysite~/djcode$ ls -a mysite/ ./ ../ __init__.py manage.py settings.py urls.py
__init__.py: 質桅package
manage.py: 銝cli撌亙瘀霈憒喳臭誑典蝔格孵Django撠獢鈭
settings.py: Django撠獢閮剖/蝯
urls.py: 甇乃jango撠獢URL摰
瑁潛沒erver
~/djcode/mysite$ python manage.py runserver Validating models... 0 errors found Django version 1.1.1, using settings 'mysite.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. [10/Nov/2009 19:55:59] "GET / HTTP/1.1" 200 2053
遁ortIP
python manage.py runserver 8080python manage.py runserver 0.0.0.0:8080
tchinese.py
#!/bin/python print "Python臬瑞拇"
python tchinese.py SyntaxError: Non-ASCII character '\xe6' in file tchinese.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
航炊閮臭葉蝯圈蝭蝡嚗PEP 0263 — Defining Python Source Code Encodings
銝剜堆
To define a source code encoding, a magic comment must be placed into the source files either as first or second line in the file, such as:
# coding=<encoding name>or (using formats recognized by popular editors)
#!/usr/bin/python # -*- coding: <encoding name> -*-or
#!/usr/bin/python # vim: set fileencoding=<encoding name> :
Example:
#!/bin/python # -*- coding: utf-8 -*- print "Python臬瑞拇"
Result:
Python臬瑞拇








啣