Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
collected articles and related code by topics. 
#############################

Shallow and Deep Copy
http://www.python-course.eu/deep_copy.php


Decorators
http://y.tsutsumi.io/dry-principles-through-python-decorators.html

List reverse
http://effbot.org/pyfaq/how-do-i-iterate-over-a-sequence-in-reverse-order.htm


Queue and deque
http://stackoverflow.com/questions/717148/queue-queue-vs-collections-deque


List Join
http://www.diveintopython.net/native_data_types/joining_lists.html
http://www.decalage.info/en/python/print_list


List of class object
http://en.sharejs.com/python/19915


Instance, Class and Static Methods
https://realpython.com/blog/python/instance-class-and-static-methods-demystified/


Division and Remainders
http://blog.csdn.net/screaming/article/details/50506813
 


Swap variables without temporary variable
https://ask.julyedu.com/question/138


## Advanced Data Structures
Segment Trees
https://www.hackerearth.com/practice/data-structures/advanced-data-structures/segment-trees/tutorial/



## Tools
Virtual environment
http://docs.python-guide.org/en/latest/dev/virtualenvs/#virtualenvironments-ref



## Git
How to undo a git pull?
http://stackoverflow.com/questions/5815448/how-to-undo-a-git-pull

How to undo a git add?
http://stackoverflow.com/questions/348170/how-to-undo-git-add-before-commit

How to renaming a repository
https://help.github.com/articles/renaming-a-repository/

## Classical algorithm
Permutation Generation in Lexicographic order.
https://en.wikipedia.org/wiki/Permutation#Generation_in_lexicographic_order


## Web Framework and Related
wsgi
https://www.python.org/dev/peps/pep-3333/
https://www.sitepoint.com/python-web-applications-the-basics-of-wsgi/
https://www.biaodianfu.com/cgi-fastcgi-wsgi.html



## Database
Database indexing
https://stackoverflow.com/questions/1108/how-does-database-indexing-work

postgreSQL
https://stackoverflow.com/questions/26040493/how-to-show-data-in-a-table-by-using-psql-command-line-interface

redis
https://realpython.com/blog/python/caching-in-django-with-redis/


## MacOS PKG Installation
postgresql install
http://www.alonely.com.cn/PostgreSQL/20161018/54697.html

nginx install
://www.reinbach.com/blog/uwsgi-nginx-flask-virtualenv-mac-os-x/


## Math
Power of Two
https://en.wikipedia.org/wiki/Power_of_two