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
<?xml version="1.0"?> | |
<project name="SimpleAnt" default="compile"> | |
<property file="file.properties" /> | |
<property name="msg" value="Hello world" /> | |
<target name="compile"> | |
<echo>${msg}</echo> | |
</target> | |
<target name="test" depends="compile"> | |
<echo>testだけど表示するだけで何もしない</echo> | |
</target> |
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
bundle install --path/vendor |
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
+ 週表示のときに、イベントのリサイズが日をまたげない | |
+ イベントのリサイズが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
$(document).ready(function() { | |
var select = function(start, end, allDay) { | |
var title = window.prompt("title"); | |
var data = {event: {title: title, | |
start: start, | |
end: end, | |
allDay: allDay}}; | |
$.ajax({ | |
type: "POST", | |
url: "/events", |
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
source 'https://rubygems.org' | |
gem 'rails', '4.1.8' | |
gem 'sqlite3' | |
gem 'fullcalendar-rails' | |
gem 'momentjs-rails' | |
gem 'uglifier' | |
gem 'jquery-rails' |
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
// 指定のウィンドウサイズに変更 | |
int width = 1000; | |
int height = 500; | |
driver.manage().window().setSize(new Dimension(width, height)); | |
// 最大化 | |
driver.manage().window().maximize(); |
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
import org.apache.commons.io.FileUtils; | |
import org.openqa.selenium.OutputType; | |
import org.openqa.selenium.TakesScreenshot; | |
File tmpFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); | |
try { | |
FileUtils.copyFile(tmpFile, new File("tmp.png")); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} |
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
package SeleniumSample; | |
import org.apache.commons.io.FileUtils; | |
import org.openqa.selenium.*; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.firefox.FirefoxDriver; | |
import org.openqa.selenium.ie.InternetExplorerDriver; | |
import org.openqa.selenium.support.ui.ExpectedConditions; | |
import org.openqa.selenium.support.ui.WebDriverWait; |
- Alt+Enter Quick Fix 補完
- Command+shift+T Go to Test テストクラス・対象クラス間を移動。対応するテストクラスがない場合には生成ダイアログを表示
- Alt+shift+F10 Run Test テストクラスまたはテストメソッドを実行
- ソースフォルダ右クリック→[New]→[Java Class]で対象クラスを作成
- Command+shift+T→[Create New Test]でテストクラス作成ダイアログからテストクラスを作成