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
TestSelenium\selenium>dir /b | |
async-http-client-2.12.3.jar | |
async-http-client-netty-utils-2.12.3.jar | |
auto-common-1.2.1.jar | |
auto-service-1.0.1.jar | |
auto-service-annotations-1.0.1.jar | |
byte-buddy-1.12.8.jar | |
checker-qual-3.12.0.jar | |
commons-exec-1.3.jar | |
error_prone_annotations-2.11.0.jar |
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 java.io.File; | |
import java.util.List; | |
import java.util.Arrays; | |
import java.nio.file.*; | |
// 引数で渡されたCSVファイルから先頭2列を削除して標準出力に表示する。データ内のカンマについては考慮されていない。 | |
public class test { | |
public static void main(String[] args) throws Exception { | |
List<String> allLines = Files.readAllLines(new File(args[0]).toPath()); | |
for(String line : allLines) { |
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
<html> | |
<head> | |
<script type="text/javascript"> | |
function btn1_onClick() { | |
// step 0 | |
var output = document.getElementById("output"); | |
output.innerHTML = ""; | |
// step 1 | |
a = parseInt(form1.a.value); |
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 static org.hamcrest.core.Is.is; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertFalse; | |
import static org.junit.Assert.assertNull; | |
import static org.junit.Assert.assertThat; | |
import static org.junit.Assert.assertTrue; | |
import static org.junit.Assert.fail; | |
import static org.mockito.BDDMockito.given; | |
import static org.mockito.Matchers.anyInt; | |
import static org.mockito.Matchers.anyString; |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
using System.Speech.Recognition; |
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 java.util.ArrayList; | |
import java.util.List; | |
public class Permutation<T> { | |
public static void main(String[] args) throws Exception { | |
List<Integer> data = new ArrayList<Integer>(); | |
for(int i=1; i<=3; i++) { | |
data.add(i); | |
} | |
List<List<Integer>> permutation = new Permutation<Integer>().make(data); |
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 java.util.ArrayList; | |
import java.util.List; | |
public class Combination<T> { | |
public static void main(String[] args) throws Exception { | |
List<Integer> data = new ArrayList<Integer>(); | |
for(int i=1; i<=3; i++) { | |
data.add(i); | |
} | |
List<List<Integer>> combination = new Combination<Integer>().makeCombination(data, 2); |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Diagnostics; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; |
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
sftp -i mogekey -o "ProxyCommand=ssh -i hogekey -e none hoge@intermediatehost exec /usr/bin/nc %h %p 2>/dev/null" moge@targethost | |
# http://superuser.com/questions/262926/must-i-sftp-to-an-intermediate-server |
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
// 最近10件のコミットから、変更行数の多い順にファイル名を表示する | |
// 一番目の引数を取得 | |
arg = args[0] | |
// 引数で指定されたディレクトリでgitコマンドを実行 | |
def p = 'git log -10 --numstat --pretty=%s'.execute([], new File(arg)) | |
p.waitFor() | |
// コマンドを実行した結果を取得して、ファイル名ごとに変更行数を集計 |
NewerOlder