Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<!--允许全屏--> | |
<meta content="yes" name="apple-mobile-web-app-capable"/> | |
<meta content="yes" name="apple-touch-fullscreen"/> | |
<!--禁止电话号码和邮箱识别--> |
/*------------------------------------*\ | |
$NAV | |
\*------------------------------------*/ | |
/* | |
TAGS: ^lists ^navigation ^text | |
*/ | |
/* | |
As per csswizardry.com/2011/09/the-nav-abstraction | |
*/ | |
.nav{ |
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)) | |
} |
# 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 |
# Add speex, for Red5 | |
brew edit ffmpeg | |
args << "--enable-libspeex" if Formula.factory('speex').installed? | |
brew install --use-gcc ffmpeg | |
# H.264 / ACC | |
ffmpeg -i video.flv -acodec libfaac -ab 19k -ar 16000 -vsync 1 -async 1 -r 25.0 -b 193k -vcodec libx264 -s 420x340 video.mp4 | |
# VP8 / Vorbis |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller | |
// fixes from Paul Irish and Tino Zijdel | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; | |
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { |
Connect the SD card to your computer and open the terminal.
df -h
require 'formula' | |
class TmuxIterm2 < Formula | |
url 'http://iterm2.googlecode.com/files/iTerm2-1_0_0_20130310.zip' | |
sha1 '2f927c6b963820c4161306be1392391712d15464' | |
head 'git://tmux.git.sourceforge.net/gitroot/tmux/tmux' | |
depends_on 'pkg-config' => :build | |
depends_on 'libevent' |
fj() { | |
pbpaste | python -mjson.tool | pygmentize -f terminal256 -l javascript -O style=native | |
} |