Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
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 |
function getCodePoint(array) { | |
/*----------------------------------------------------------------------------------------- | |
[UCS-2 (UCS-4)] [bit pattern] [1st byte] [2nd byte] [3rd byte] [4th byte] | |
U+ 0000.. U+007F 00000000-0xxxxxxx 0xxxxxxx | |
U+ 0080.. U+07FF 00000xxx-xxyyyyyy 110xxxxx 10yyyyyy | |
U+ 0800.. U+FFFF xxxxyyyy-yyzzzzzz 1110xxxx 10yyyyyy 10zzzzzz | |
U+10000..U+1FFFFF 00000000-000wwwxx 11110www 10xxxxxx 10yyyyyy 10zzzzzz | |
-xxxxyyyy-yyzzzzzzz | |
------------------------------------------------------------------------------------------*/ |