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
// Selenium RCの場合 => openの後waitが必要 | |
selenium.open("http://www.google.com"); | |
selenium.waitForPageToLoad(); | |
selenium.typeKeys("name=q", "bears"); | |
// WebDriverの場合 => openの中で暗黙的にwaitしているので、わざわざ記述は要らない | |
selenium.open("http://www.google.com"); | |
selenium.typeKeys("name=q", "bears"); |
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
// Selenium RCの場合 | |
selenium.chooseCancelOnNextConfirmation(); | |
selenium.click("id=foo"); | |
// WebDriverの場合 | |
webdriver.findElement(By.id("foo")).click(); | |
webdriver.switchTo().alert().dismiss(); |
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
-- ことえり単語登録(== "WordRegister") | |
tell application "WordRegister" | |
activate | |
end tell | |
tell application "System Events" | |
-- 単語の欄にペースト |
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
-- Sublime Text 2をアクティブにする | |
tell application "Sublime Text 2" | |
activate | |
end tell | |
-- Sublime Text 2の現在行を選択して、切り出す | |
tell application "System Events" | |
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/sh | |
# post-checkout | |
# ============= | |
# arguments | |
# $1: ref of the previous HEAD e.g.) 0000000000000000000000000000000000000000 | |
# $2: ref of the new HEAD e.g.) 959224d097072c8a5640fee31bac7325710eada1 | |
# $3: flag = ブランチをチェックアウトした場合=1, ファイルをチェックアウトした場合=0 | |
# `git clone`時だけ処理をしたいので、通常の`git checkout`時には何もしない | |
if [ "$1" != "0000000000000000000000000000000000000000" -o "$3" != "1" ]; then |
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
## Node ## | |
#------------ | |
npm-debug.log | |
node_modules | |
## OSX ## | |
#------------ | |
.DS_Store | |
.AppleDouble | |
.LSOverride |
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 express = require('express'), | |
port = 48172, | |
ret = { name:'hello', value:'world' }; | |
express().get('/', function(req, res) { | |
res.contentType('application/json').send(JSON.stringify(ret)); | |
}).listen(port, function() { | |
console.log("express server on localhost:%d", this.address().port); | |
}); |
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
cd "${HOME}/Library/Application Support/Sublime Text 2/Packages/tern_for_sublime" | |
npm install |
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
Show hidden characters
{ | |
"folders": | |
[ | |
{ | |
// プロジェクトに含めるディレクトリ | |
"path": ".", | |
// 除外するディレクトリパターン | |
"folder_exclude_patterns": [], | |
// 除外するファイルパターン | |
"file_exclude_patterns": ["*.sublime-workspace"] |
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
{ | |
〜(略)〜 | |
"tern_argument_hints": true | |
〜(略)〜 | |
} |