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
(* Growlにアプリケーションを登録 *) | |
tell application "GrowlHelperApp" | |
register as application ¬ | |
"TWMailGrowl" all notifications {"Notification", "Notification2"} ¬ | |
default notifications {"Notification"} ¬ | |
icon of application "Script Editor" | |
end tell |
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
tell application "GrowlHelperApp" | |
register as application ¬ | |
"TWMailGrowl" all notifications {"Notification", "Notification2"} ¬ | |
default notifications {"Notification"} ¬ | |
icon of application "Script Editor" | |
end tell |
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
-- Main module | |
-- * This is Main module | |
-- * This comment cause haddock parse error | |
module Main(main) where | |
main = print "hello world!" |
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
//--------------------------------------- | |
// オブジェクト指向で遊んでみる | |
//--------------------------------------- | |
//--------------------------------------- | |
// 補助クラス | |
//--------------------------------------- | |
// Void型 |
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
" add Readability hints | |
js <<EOM | |
hints.addMode('d', 'delete article', function(elem) { | |
elem.getElementsByClassName('article-confirmDelete')[0].click(); | |
}, function() '//*[contains(@class,"article-box")]'); | |
EOM | |
" ,rlとかと統一性を持たせたい | |
nnoremap ,rd ;d |
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
" Readability delete article hint mode | |
js <<EOM | |
hints.addMode('d', 'delete article', function(elem) { | |
elem.getElementsByClassName('article-confirmDelete')[0].click(); | |
elem.getElementsByClassName('article-remove')[0].click(); | |
}, function() '//*[contains(@class,"article-box")]'); | |
EOM | |
nnoremap ,rd ;d |
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
require 'twitter' | |
Twitter.configure do |config| | |
config.consumer_key = YOUR_CONSUMER_KEY | |
config.consumer_secret = YOUR_CONSUMER_SECRET | |
config.oauth_token = YOUR_OAUTH_TOKEN | |
config.oauth_token_secret = YOUR_OAUTH_TOKEN_SECRET | |
end | |
Twitter.update(ARGV[0]) |