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
" Gvim 專用設定檔 | |
" 設定顏色 | |
"color torte | |
colorscheme ir_black | |
set t_Co=256 | |
" 設定字型 | |
set guifont=Consolas:h16 | |
" 設定寬度 | |
set columns=90 | |
" Make command line two lines high |
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
" 這個版本已不再使用,請用 https://gist.github.com/171579 | |
" Gvim 專用設定檔 | |
" 設定顏色 | |
color torte | |
" 設定字型 | |
set guifont=Monaco:h18 | |
" 設定寬度 | |
set columns=90 | |
set ch=2 " Make command line two lines high |
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
/* 計算已經服役天數 */ | |
var now = new Date(); | |
var day = new Date(2009,9-1,1); | |
/* 這個是入伍日期,上面的寫法是:我在 2007 年 10 月 17 入伍 */ | |
day = (now.getTime()- day.getTime())/(24*60*60*1000); | |
/* 現在時間減去入伍時間,為 Unix 系統時間,毫秒 */ | |
day = Math.ceil(day); | |
/*傳回指定數字或運算式的最小整數 */ | |
if (day < 0) | |
document.write("距離國軍Online 登入還有<strong>" + day*-1 + "</strong> 天"); |
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
# Mac OS X Finder and whatnot | |
.DS_Store | |
# Thumbnails | |
._* | |
# Files that might appear on external disk | |
.Spotlight-V100 | |
.Trashes |
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
<ul class="list"> | |
<li class="film"><a href="search/label/film">Film</a></li> | |
<li class="theatre"><a href="search/label/film">Theatre</a></li> | |
<li class="music"><a href="search/label/film">Music</a></li> | |
<li class="lyrics"><a href="search/label/film">Lyrics Case</a></li> | |
<li class="quotes"><a href="search/label/film">Quotes。</a></li> | |
<li><img 135px width="135" src="http://farm4.static.flickr.com/3430/3378859683_329df186f2_m.jpg" width: /></li> | |
<li class="life"><a href="search/label/film">Life</a></li> | |
<li class="wonders"><a href="search/label/film">Wonders</a></li> | |
<li class="travel"><a href="search/label/film">Travel</a></li> |
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
#side_base, | |
.elections-promotion, | |
#navigation, | |
#footer, | |
#header, | |
.content-bubble-arrow | |
{ | |
display: none !important; | |
} |
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
tell application "System Events" | |
if (output muted of (get volume settings)) is true then | |
set volume without output muted | |
else | |
set volume with output muted | |
end if | |
end tell |
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 | |
# Chromium update script | |
# - by shad <[email protected]> | |
# - by superbil <[email protected]> | |
OS=mac | |
SITE=http://build.chromium.org/buildbot/snapshots/chromium-rel- | |
LATEST=$(wget -q -O - ${SITE}${OS}/LATEST) | |
INSTALL_DIR=/Applications | |
TARGET=Chromium |
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 | |
## call git init | |
git init | |
## make .gitignore | |
cat > .gitignore << EOF | |
# Mac OS X Finder and whatnot | |
.DS_Store | |
# no useful files |
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
# 建立一個新的.dropbox目錄,存另一個帳號的資料 | |
# Make another .dropbox dir to save data | |
HOME=/Users/$USER/.dropbox-alt | |
/Applications/Dropbox.app/Contents/MacOS/Dropbox |
OlderNewer