IIssNan's Notes

Quick notes


  • 首页

  • 归档

  • 标签

  • 搜索

Import an Apache ant project

发表于 2011-11-29 | | 阅读次数

使用 import 与 antcall task。

注:import 进来的任务,就算位置是在子目录,但是使用的 basedir 跟当前的 project 一样。

1
2
3
4
5
6
7
8
9
10
11
<!-- Path to Css Compressor-->
<import file="${basedir}/CompressorCss/build.xml" as="CompressorCss"/>
<!--invoke the target in the imported file-->
<target name="CompressCss">
<antcall target="CompressorCss.run">
<param name="dir.source" value="${basedir}/source" />
<param name="dir.output" value="${basedir}/output" />
<param name="dest.filename" value="test2" />
</antcall>
</target>

CSS hacks for IE browsers

发表于 2011-11-28 | | 阅读次数
1
2
3
4
5
6
7
.test{
color:green;
color:red\9; /* All IE */
color:blue\0/; /* IE8 & IE9 */
*color: #000; /* lte IE7 */
_color: #ccc; /* IE6 */
}

Maximum value of z-index

发表于 2011-11-18 | | 阅读次数
Browser Max z-index value When exceeded, value changes to:
Internet Explorer 6 2147483647 2147483647
Internet Explorer 7 2147483647 2147483647
Internet Explorer 8 2147483647 2147483647
Firefox 2 2147483647 element disappears
Firefox 3 2147483647 0
Safari 3 16777271 16777271
Safari 4 2147483647 2147483647
Opera 9 2147483647 2147483647

Vundle Vim plugin manager

发表于 2011-11-10 | | 阅读次数

Vundle

Setup Vundle

1
$ git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

Sample Config

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles here:
"
" original repos on github
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
Bundle 'rails.vim'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'
" ...
filetype plugin indent on " required!
"
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..

重装Homebrew

发表于 2011-11-08 | | 阅读次数

卸载当前版本

1
2
3
4
5
cd `brew —-prefix`
rm -rf Cellar
brew prune
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew
rm -rf ~/Library/Caches/Homebrew

安装新版本

1
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
1…313233…37
IIssNan

IIssNan

胡编一通,乱写一气

183 日志
6 分类
111 标签
RSS
GitHub Twitter 豆瓣 知乎
© 2011 - 2017 IIssNan
由 Hexo 强力驱动
主题 - NexT.Pisces
0%