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
#!/bin/sh | |
for i in $@ | |
do | |
echo 'tell application "'${i}'" to activate' > ${i}_active.scpt | |
osacompile -o ${i}_active.scpt ${i}_active.scpt | |
done |
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
--- changelog.vim.old 2010-02-17 17:10:26.000000000 +0900 | |
+++ changelog.vim.new 2010-02-17 17:32:43.000000000 +0900 | |
@@ -121,12 +121,12 @@ | |
" Format used for new date entries. | |
if !exists('g:changelog_new_date_format') | |
- let g:changelog_new_date_format = "%d %u\n\n\t* %c\n\n" | |
+ let g:changelog_new_date_format = "%d %u\n\n\t*%p %c\n\n" | |
endif | |
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
snippet php | |
<?php | |
${1} | |
?> | |
snippet pecho | |
<?php echo ${1} ?>${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
snippet if | |
if [ ${1:condition} ]; then | |
${0:#statements} | |
fi | |
snippet el | |
else | |
${0:#statements} |
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
snippet sel | |
@selector(${1:method}:) | |
snippet imp | |
#import <${1:Cocoa/Cocoa.h}> | |
snippet Imp | |
#import "${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
#!/bin/sh | |
tmpfile=~/.screen/termtter | |
if [ -e $tmpfile ] ; then | |
screen -X eval 'resize 10' 'focus up' | |
rm $tmpfile | |
else | |
screen -X eval 'focus bottom' 'resize max' | |
touch $tmpfile |
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
# -*- coding: utf-8 -*- | |
# タイムライン取得後に線を入れる | |
Termtter::Client.register_hook( | |
:name => :add_line, | |
:points => [:output], | |
:exec_proc => lambda { | |
puts '-' * `echo $COLUMNS`.to_i | |
} | |
) |
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
snippet :f | |
${1:method_name}: function(${2:attribute}){ | |
${0} | |
} | |
snippet func | |
function ${1:function_name} (${2:argument}) { | |
${0:// body...} | |
} |
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
snippet pu | |
public | |
snippet po | |
protected | |
snippet pr | |
private |
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
snippet script | |
script ${1:new_object} | |
on run | |
${2:-- do something interesting} | |
end run | |
end script | |
snippet on | |
on ${1:functionName}(${2:arguments}) |