I hereby claim:
- I am chenko515 on github.
- I am chenko515 (https://keybase.io/chenko515) on keybase.
- I have a public key ASDXaxkUW7D-r6gaFpOO37hADbPTrFTZAYWvYPekz-zWDAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| http://www.python.org/dev/peps/pep-0263/ | |
| Defining the Encoding | |
| Python will default to ASCII as standard encoding if no other | |
| encoding hints are given. | |
| 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: |
| ####################################### | |
| # aliases defined by chenko on mac os x | |
| ####################################### | |
| #################### | |
| #Temporary aliases: | |
| #################### | |
| #change directory to django project mysite |
| <?php | |
| $tel_no = $_GET['hm']; | |
| $c = $_GET['c']?$_GET['c']:0; | |
| $c++; | |
| ?> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>迷你轰炸台 - 短信炸弹 - BETA!</title> | |
| <?php |
| 首先打开“终端”(Finder->应用程序->实用工具->终端),并且输入以下命令: | |
| defaults write com.apple.dock workspaces-edge-delay -float 0;killall Dock | |
| 现在大家试一下秒切吧。哈哈。。很爽不。是不是太快了,如果觉得太快,我们还可以在改改设定,我就设定在屏幕边缘停留半秒切换吧。 | |
| 再次打开“终端”(Finder->应用程序->实用工具->终端),并且输入以下命令: | |
| defaults write com.apple.dock workspaces-edge-delay -float 0.15;killall Dock | |
| 如果你想还原成原样,也很简单,再次打开“终端”(Finder->应用程序->实用工具->终端),并且输入以下命令: | |
| defaults delete com.apple.dock workspaces-edge-delay;killall Dock |
| from contextlib import contextmanager | |
| @contextmanager | |
| def closing(thing): | |
| try: | |
| yield thing | |
| finally: | |
| thing.close() | |
| And lets you write code like this: |
| // Add a div node: "id=ele_top div" as the anchor at the top of the page | |
| var addTop = function(){ | |
| ele_top = document.createElement('div'); | |
| ele_top.id = "ele_top"; | |
| document.body.insertBefore(ele_top, document.body.firstChild); | |
| return true; | |
| }; | |
| // Jump to the anchor node | |
| var toTop = function(){ |