This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 先安装highlight, "brew install highlight" | |
# Parse arguments | |
usage() { | |
echo "Usage: $0 [-h] [-v] [-f FILE] [-k fontsize] [-s startline] [-e endline]" | |
echo " -h Help. Display this message and quit." | |
echo " -v Version. Print version number and quit." | |
echo " -k Specify font-size." | |
echo " -f Specify file FILE." | |
echo " -s Specify the line number of the file that start from ." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<P> 秦奋忏悔了4个小时,牧师受不了了。<br><br> 牧师说:我们的教堂太小了,装不下他那么大的罪恶,前面还有一个比较大的教堂。 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
origin 学习 | |
hyvi:~/.vim$ tree -L 2 | |
. | |
├── autoload | |
│ ├── pathogen.vim | |
│ └── zencoding.vim | |
├── bundle | |
│ ├── gist-vim | |
│ ├── matchit.zip | |
│ ├── nerdtree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# work-around 405 for POST to static URL | |
upstream my-static-server-name { | |
server 11.111.111.111:8080; | |
} | |
. | |
. | |
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title> Test </title> | |
<style type="text/css"> | |
.left{width:200px; | |
height:300px; | |
background-color:red; | |
float:left; | |
} | |
.middle { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim_plugin_task "ack.vim", "git://github.com/mileszs/ack.vim.git" | |
vim_plugin_task "color-sampler", "git://github.com/vim-scripts/Color-Sampler-Pack.git" | |
vim_plugin_task "conque", "http://conque.googlecode.com/files/conque_1.1.tar.gz" | |
vim_plugin_task "fugitive", "git://github.com/tpope/vim-fugitive.git" | |
vim_plugin_task "git", "git://github.com/tpope/vim-git.git" | |
vim_plugin_task "haml", "git://github.com/tpope/vim-haml.git" | |
vim_plugin_task "indent_object", "git://github.com/michaeljsmith/vim-indent-object.git" | |
vim_plugin_task "javascript", "git://github.com/pangloss/vim-javascript.git" | |
vim_plugin_task "nerdtree", "git://github.com/wycats/nerdtree.git" | |
vim_plugin_task "nerdcommenter", "git://github.com/ddollar/nerdcommenter.git" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nmap <F2> a<C-R>=strftime("%c")<CR><Esc> | |
"http://stackoverflow.com/questions/69998/tabs-and-spaces-in-vim | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
call pathogen#infect() | |
syntax on | |
filetype plugin indent on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
12306 Auto Login => A javascript snippet to help you auto login 12306.com. | |
Copyright (C) 2011 Kevintop | |
Includes jQuery | |
Copyright 2011, John Resig | |
Dual licensed under the MIT or GPL Version 2 licenses. | |
http://jquery.org/license | |
Includes 12306.user.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
问题: | |
hadoop能正常的启动,但是在mapreduce的时候出现 | |
Lost tracker错误。datanode进程中只有一个hadoop进程。 | |
err信息 : | |
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Getting window size and scroll bars position in JavaScript/DHTML | |
* http://www.softcomplex.com/docs/get_window_size_and_scrollbar_position.html | |
*/ | |
function f_clientWidth() { | |
return f_filterResults ( | |
window.innerWidth ? window.innerWidth : 0, | |
document.documentElement ? document.documentElement.clientWidth : 0, | |
document.body ? document.body.clientWidth : 0 |
NewerOlder