Skip to content

Instantly share code, notes, and snippets.

View Superbil's full-sized avatar
:shipit:
Working in Cloud

Superbil Superbil

:shipit:
Working in Cloud
View GitHub Profile
@Superbil
Superbil / gvimrc
Created August 21, 2009 00:46
superbil's vimrc & gvimrc
" Gvim 專用設定檔
" 設定顏色
"color torte
colorscheme ir_black
set t_Co=256
" 設定字型
set guifont=Consolas:h16
" 設定寬度
set columns=90
" Make command line two lines high
" 這個版本已不再使用,請用 https://gist.github.com/171579
" Gvim 專用設定檔
" 設定顏色
color torte
" 設定字型
set guifont=Monaco:h18
" 設定寬度
set columns=90
set ch=2 " Make command line two lines high
@Superbil
Superbil / 當兵天數.js
Created August 24, 2009 07:01
計算已經服役天數
/* 計算已經服役天數 */
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> 天");
@Superbil
Superbil / Darwin
Last active September 5, 2015 14:24
git ignore file
# Mac OS X Finder and whatnot
.DS_Store
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
@Superbil
Superbil / gist:507824
Created August 4, 2010 08:07
simple css
<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>
@Superbil
Superbil / userstyles.css
Created August 7, 2010 07:52
userstyle for twitter clinet
#side_base,
.elections-promotion,
#navigation,
#footer,
#header,
.content-bubble-arrow
{
display: none !important;
}
@Superbil
Superbil / mute.scpt
Created August 7, 2010 10:28
mute system and return mute
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
@Superbil
Superbil / chromium_update.sh
Created September 16, 2010 16:22
auto update chromium on osx
#!/bin/bash
# Chromium update script
# - by shad <shad@zaphod.eu>
# - by superbil <help@superbil.info>
OS=mac
SITE=http://build.chromium.org/buildbot/snapshots/chromium-rel-
LATEST=$(wget -q -O - ${SITE}${OS}/LATEST)
INSTALL_DIR=/Applications
TARGET=Chromium
@Superbil
Superbil / make-xcode-ignore.sh
Created September 25, 2010 11:40
auto make xcode ignore file script
#!/bin/bash
## call git init
git init
## make .gitignore
cat > .gitignore << EOF
# Mac OS X Finder and whatnot
.DS_Store
# no useful files
@Superbil
Superbil / config_dropbox.sh
Last active April 8, 2020 00:13
Open another Dropbox account for mac, new version https://github.com/Superbil/Dropbox-AltStarter-app
# 建立一個新的.dropbox目錄,存另一個帳號的資料
# Make another .dropbox dir to save data
HOME=/Users/$USER/.dropbox-alt
/Applications/Dropbox.app/Contents/MacOS/Dropbox