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
--- apt-cyg 2010-04-28 03:55:43.000000000 +0900 | |
+++ ~/cygwin/bin/apt-cyg 2012-01-24 07:24:17.433141300 +0900 | |
@@ -242,11 +242,11 @@ case "$command" in | |
do | |
echo "" | |
echo Searching for installed packages matching $pkg: | |
- awk '/[^ ]+ [^ ]+ 0/ {if ($1 ~ query) print $1}' query="$pkg" /etc/setup/installed.db | |
+ awk -v IGNORECASE=1 '/[^ ]+ [^ ]+ 0/ {if ($1 ~ query) print $1}' query="$pkg" /etc/setup/installed.db | |
echo "" | |
echo Searching for installable packages matching $pkg: |
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
if [ -d "${HOME}/cygwin/bin" ] ; then | |
PATH="${HOME}/cygwin/bin:${PATH}" | |
fi |
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
rem CygwinシンボリックリンクをWindowsショートカットにする場合コメントアウト解除 | |
rem setx CYGWIN winsymlinks | |
rem makeの動作モード | |
setx MAKE_MODE unix | |
rem CRを無視する | |
setx SHELLOPTS igncr |
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
if [[ -z "$BASH_COMPLETION_DIR" && -f /etc/bash_completion ]]; then | |
USER_COMP_DIR=~/cygwin/bash_completion.d | |
BASH_COMPLETION_DIR=$USER_COMP_DIR | |
BASH_COMPLETION_COMPAT_DIR=$USER_COMP_DIR | |
unset USER_COMP_DIR | |
. /etc/bash_completion | |
fi |
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
[ -n "$USER_COMP_DIR" ] || USER_COMP_DIR=~/cygwin/bash_completion.d | |
[ -n "$USER_COMP_FILE" ] || USER_COMP_FILE=~/cygwin/bash_completion | |
if [[ -d $USER_COMP_DIR && -r $USER_COMP_DIR && -x $USER_COMP_DIR && \ | |
-f $USER_COMP_FILE && -r $USER_COMP_FILE ]]; then | |
# /etc/bash_completionより | |
UNAME=$( uname -s ) | |
# strip OS type and version under Cygwin (e.g. CYGWIN_NT-5.1 => Cygwin) | |
UNAME=${UNAME/CYGWIN_*/Cygwin} |
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
func! s:func1(strg) | |
endfunc | |
func! TestFunction() | |
let loopcnt = 1000000 | |
let st_time = reltime() | |
let i = 0 | |
let ss = "" | |
while i < loopcnt | |
call s:func1(ss) |
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
func! s:fact1(val) | |
if ( a:val == 1 ) | |
return 1 | |
else | |
return a:val * s:fact1(a:val-1) | |
endif | |
endfunc | |
func! s:fact2(val) | |
let i = a:val - 1 |
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
let g:loop_cnt = 2000000 | |
func! s:test_func1() | |
let target_str = '@octopress\source' | |
let str = '\\machine\Dropbox\octopress' | |
let i = 0 | |
let ie = g:loop_cnt | |
while ( i < ie ) | |
let ret_str = substitute(target_str,'@octopress', str, '') | |
let i += 1 |
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
" vim:fdm=marker | |
let g:test_flg = 0 | |
let g:using_val = 0 | |
let s:using_val = 0 | |
"global宣言{{{1 | |
if ( g:test_flg == 1 ) | |
let g:dummy_val1 = 0 | |
let g:dummy_val2 = 0 |
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
func! s:test_func1() | |
let i = 0 | |
while ( i < 3000000 ) | |
let dummy0 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy1 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy2 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy3 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy5 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy6 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" |