
Technical Tips
EricYeung
这个作者很懒,什么都没留下…
展开
-
如何在网页中保持C,Java..等源代码语法着色
我的解决办法是1)用Vim(我的是Windows XP + GVim6.3)打开源代码文件,例如sample.c2)执行 :source $VIMRUNTIME/syntax/2htmls.vim, 则会在当前目录生成sample.c.html这个sample.c.html就是我们想要的东西,你在vi里看到什么效果,他出来就怎么样。原创 2005-12-31 09:29:00 · 1306 阅读 · 0 评论 -
Add remove window services
Install/Uninstall .Net wizarded window service : InstallUtil.exegeneral Add/Delete: sc.exe原创 2008-03-11 09:23:00 · 657 阅读 · 0 评论 -
Right click to open cmd.exe
1) open window explorer2) Tools -> Folder Options.3) File type tab4) Choose Folder file type5) Click Advanced6) Click New7) In "Action" Box: input "command" (this will be shown when you right click)8)原创 2008-03-02 12:09:00 · 894 阅读 · 0 评论 -
Error checking V.S. Exception
1)Error checkingif (bad_condition) thenbegin ShowMsg("bad"); return ERROR_CODE_1;end; 2)raise exceptionif (bad_condition) then raise Exception.Create("bad")comparision:1)communicate with UI d原创 2007-12-10 08:46:00 · 687 阅读 · 0 评论 -
Keyboard Keys
~ Tilde ` Acute, Back quote, grave, grave accent, left quote, open quote, or a push ! Exclamation mark, Exclamation point, or Bang @ At or At symbol # Octothorpe, Number, Pound, sharp, or Hash £原创 2007-05-06 12:52:00 · 1086 阅读 · 0 评论 -
My .Emacs
;color highlighting(global-font-lock-mode t)(setq transient-mark-mode t);turn off the anoy sound(setq visible-bell t);set line number (does not work)(setq column-number-mode t)(setq line-number-mo原创 2007-05-05 01:37:00 · 978 阅读 · 0 评论 -
在Google 上搜书的方法
一. 利用google突破各种封锁来下载你要的东西可以搜索到一些意想不到的东西......在搜索框上输入: "index of/ " inurl:lib再按搜索你将进入许多图书馆,并且一定能下载自己喜欢的书籍。在搜索框上输入: index of /" cnki再按搜索你就可以找到许多图书馆的CNKI、VIP、超星等入口!在搜索框上输入: "index of /" ppt再按搜转载 2006-04-15 09:26:00 · 1933 阅读 · 0 评论 -
Vim Tips
trim multi-newline into one newline :%s//(/n/)/+//1/igcJ 将下一行整行接至本行(Joint)。ce(nter) 本行文字置中。注意是冒号命令! :ri(ght) 本行文字靠右。 :le(ft) 本行文字靠左。 所谓置中、靠左右,是参考 textwidth(tw) 的设定。 如果 tw 没有设定,预设是 80,就是以 80 个字元转载 2006-04-14 09:39:00 · 1089 阅读 · 0 评论 -
Lisp Learning Note
PROG1, PROG2, PROGNThese forms are used infrequently today. They were important in earlierversions of Lisp, in which the body of a function could contain at most oneexpression and a COND clause coul原创 2006-03-02 22:47:00 · 1662 阅读 · 0 评论 -
my _vimrc
set nocompatiblesource $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswinset diffexpr=MyDiff()function! MyDiff() let opt = -a --binary if &diffopt =~ icase | let opt = opt .原创 2006-02-22 21:47:00 · 1532 阅读 · 0 评论 -
[转载]Excel中读出大写金额的函数
[转载]Excel中读出大写金额的函数关键词: Excel 人民币 大写 金额 函数 将下列函数复制到Excel中的工程模块中,可以使用:=NounOfAmount("人民币",35103.27)得到人民币叁万伍仟壹佰零叁元贰角柒分,使用:=NounOfAmount("人民币",100000原创 2006-01-03 10:41:00 · 5351 阅读 · 0 评论 -
quine in HTML (Excerpt From WWW)
html>body id="body">pre id="code">.pre>body>script type="text/javascript"> var aflac = (window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest(); aflac.onrea原创 2005-12-31 12:13:00 · 1023 阅读 · 0 评论 -
How to use SubVersion (Import/Checkout)
how to use SVN1)select a native window folder "Import" to SVN, but the native folder is not linked to SVN2)remove the natie folderIn SVN Explorer, use "checkout" to local dir(which will link local fol原创 2008-03-11 09:31:00 · 646 阅读 · 0 评论