Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| # Nginx can serve FLV/MP4 files by pseudo-streaming way without any specific media-server software. | |
| # To do the custom build we use 2 modules: --with-http_secure_link_module --with-http_flv_module | |
| # This module "secure-link" helps you to protect links from stealing away. | |
| # | |
| # NOTE: see more details at coderwall: http://coderwall.com/p/3hksyg | |
| $ cd /usr/src | |
| $ wget http://nginx.org/download/nginx-1.2.2.tar.gz | |
| $ tar xzvf ./nginx-1.2.2.tar.gz && rm -f ./nginx-1.2.2.tar.gz |
| function tabname { | |
| printf "\e]1;$1\a" | |
| } | |
| cd() { | |
| test $# -ne 0 && builtin cd "$*" || builtin cd | |
| tabname $(basename $(pwd)) | |
| } |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| /*------------------------------------*\ | |
| $NAV | |
| \*------------------------------------*/ | |
| /* | |
| TAGS: ^lists ^navigation ^text | |
| */ | |
| /* | |
| As per csswizardry.com/2011/09/the-nav-abstraction | |
| */ | |
| .nav{ |
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <!--允许全屏--> | |
| <meta content="yes" name="apple-mobile-web-app-capable"/> | |
| <meta content="yes" name="apple-touch-fullscreen"/> | |
| <!--禁止电话号码和邮箱识别--> |
| foo { | |
| animation-name: spin; | |
| animation-duration: 3s; | |
| animation-timing-function: ease | linear | ease-in | ease-out | ease-in-out | step-start | step-end | steps(10,start | end) | cubic-bezier(<number>, <number>, <number>, <number>); | |
| animation-delay: 3s; | |
| animation-iteration-count: infinite | 10; | |
| animation-direction: alternate | normal; | |
| animation-fill-mode: forward | backwards | both | none; | |
| animation-play-state: running | paused; | |
| } |
| " Vim syntax file | |
| " Language: SQL, PGSQL (postgres 9.1) | |
| " Last Change: 2012 May 21st | |
| " Maintainer: Grégoire Hubert <greg DOT hubert AT gmail DOT com> | |
| " Based on the work of Paul Moore <pf_moore AT yahoo.co.uk> | |
| " For version 5.x: Clear all syntax items | |
| " For version 6.x: Quit when a syntax file was already loaded | |
| if version < 600 | |
| syntax clear |
| /** | |
| * Function to fix native charCodeAt() | |
| * | |
| * Now, we can use fixedCharCodeAt("foo€", 3); for multibyte (non-bmp) chars too. | |
| * | |
| * @access public | |
| * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charCodeAt | |
| * @note If you hit a non-bmp surrogate, the function will return false | |
| * @param str String Mixed string to get charcodes | |
| * @param idx Integer Position of the char to get |