Skip to content

Instantly share code, notes, and snippets.

View zhuangya's full-sized avatar
🧛‍♂️
only silver bullet is silver bullet.

Ya Zhuang zhuangya

🧛‍♂️
only silver bullet is silver bullet.
View GitHub Profile
2014-12-05 11:35:03 +0800
./configure
--prefix=/usr/local/Cellar/mplayer/1.1.1
--cc=clang
--host-cc=clang
--disable-cdparanoia
--disable-libopenjpeg
--enable-menu
--disable-x11
require('http').createServer(function (req, res) {
res.end(req.headers['user-agent']);
}).listen(process.env.PORT || 7878);
2015-03-23 12:14:52 +0800
./configure
--with-features=huge
--enable-multibyte
--with-macarchs=x86_64
--enable-perlinterp
--enable-rubyinterp
--enable-tclinterp
--with-tlib=ncurses
2015-03-23 12:19:10 +0800
./configure
--with-features=huge
--enable-multibyte
--with-macarchs=x86_64
--enable-perlinterp
--enable-rubyinterp
--enable-tclinterp
--with-tlib=ncurses

Keybase proof

I hereby claim:

  • I am zhuangya on github.
  • I am nos (https://keybase.io/nos) on keybase.
  • I have a public key whose fingerprint is B9A0 6678 6A17 3937 5DB3 E17D 133F 2D5E 971C 2C4A

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am zhuangya on github.
* I am nos (https://keybase.io/nos) on keybase.
* I have a public key whose fingerprint is 4922 EA5D 9F3C FFF7 D1E5 0F92 0DD8 03C3 DC4C 0F73
To claim this, I am signing this object:
unbind-key C-b
set-option -g prefix '`'
bind-key '`' send-prefix
source /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
set -g base-index 1
unbind %
bind | split-window -h
@zhuangya
zhuangya / .vimrc
Created July 27, 2011 14:18 — forked from jeresig/.vimrc
VIM Config
au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery
set nocompatible
set autoindent
set tabstop=2
set showmatch
set vb t_vb=
set ruler
set nohls
set incsearch
syntax on
@zhuangya
zhuangya / index.prototype.js
Created October 31, 2011 16:20
indexOf prototype for IE 9-
/**
* Refs:
* http://nootn.com/blog/Develop/35/
* http://soledadpenades.com/2007/05/17/arrayindexof-in-internet-explorer/#comment-57199
* http://ecma262-5.com/ELS5_HTML.htm#Section_15.4.4.14
*/
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function(el, index) {
var n = this.length >>> 0, i = ~~index;
@zhuangya
zhuangya / gist:1347480
Created November 8, 2011 10:49
md.css
::-moz-selection {
background-color: #19B8E6;
color: white;
text-shadow: none;
}
::selection {
background-color: #19B8E6;
color: white;
text-shadow: none;