This file contains 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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"键盘命令 | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" keyboard shortcuts | |
let mapleader = ',' | |
map <C-h> <C-w>h | |
map <C-j> <C-w>j | |
map <C-k> <C-w>k | |
map <C-l> <C-w>l | |
map <C-w> <C-w>w |
This file contains 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"""""新文件标题 | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"新建.c,.h,.sh,.java文件,自动插入文件头 | |
autocmd BufNewFile *.cpp,*.[ch],*.sh,*.java,*.py exec ":call SetTitle()" | |
""定义函数SetTitle,自动插入文件头 | |
func SetTitle() | |
"如果文件类型为.sh文件 | |
if &filetype == 'sh' | |
call setline(1,"\#!/bin/bash") |
This file contains 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"显示相关 | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set cul "高亮光标所在行 | |
"set cuc | |
set shortmess=atI " 启动的时候不显示那个援助乌干达儿童的提示 | |
set lines=40 columns=155 | |
set go= " 不要图形按钮 | |
"set guifont=Courier_New:h10:cANSI " 设置字体 | |
autocmd InsertLeave * se nocul " 用浅色高亮当前行 |
This file contains 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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
""实用设置 | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set sw=4 | |
set ts=4 | |
set et | |
set smarttab | |
set smartindent | |
set lbr | |
set fo+=mB |
This file contains 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
import java.lang.reflect.Field; | |
import sun.misc.Unsafe; | |
public class Direct { | |
public static void main(String... args) { | |
Unsafe unsafe = null; | |
try { |
This file contains 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
<font color="red">hello world</font> |
This file contains 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
RTSP:实时流协议(Real Time Streaming Protocol,RTSP) | |
RTSP的请求主要有DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,OPTIONS等,顾名思义可以知道起对话和控制作用 | |
RTSP的对话过程中SETUP可以确定RTP/RTCP使用的端口,PLAY/PAUSE/TEARDOWN可以开始或者停止RTP的发送,等等 | |
RTP:实时传输协议(Real-time Transport Protocol)wiki: http://en.wikipedia.org/wiki/Real-time_Transport_Protocol | |
RTP/RTCP是实际传输数据的协议 | |
RTP传输音频/视频数据,如果是PLAY,Server发送到Client端,如果是RECORD,可以由Client发送到Server | |
整个RTP协议由两个密切相关的部分组成:RTP数据协议和RTP控制协议(即RTCP) | |
RTCP:RTP Control Protocol (RTCP),属于RTP的一部分,RTP的控制协议 wiki: http://en.wikipedia.org/wiki/RTCP |
This file contains 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
print "".join([('%s*%s=%s%s') % (x,y,x*y,('\n' if x==y else '\t')) for x in range(1,10) for y in range(1,10) if x >= y]) |
This file contains 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
1. 进入项目根目录,在该目录下建立ignore文件,ignore文件内容: | |
.settings | |
.project | |
.classpath | |
target | |
2. 在项目根目录下执行svn propset svn:ignore -F ignore -R ./ 然后svn ci –m “your msg” |
This file contains 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 | |
find . -name .svn|xargs rm -rf | |
find . -name .settings | xargs rm -rf | |
find . -name .project | xargs rm -rf | |
find . -name .classpath | xargs rm -rf | |
find . -name target | xargs rm -rf | |
# === generate ignore file | |
echo ".project" >> ignore |
OlderNewer