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
public class Category { | |
String name; | |
Map element; | |
List childCategory; | |
public Category(String name) { | |
this.name = name; | |
element = new HashMap(); | |
childCategory = new ArrayList(); |
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.io.IOException; | |
import org.apache.commons.io.FileUtils; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.OutputType; | |
import org.openqa.selenium.TakesScreenshot; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.ie.InternetExplorerDriver; |
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
$ ls -la /proc/23109/fd/ | |
lrwx------ 1 kotaro kotaro 64 1月 8 17:30 0 -> /dev/pts/1 | |
lrwx------ 1 kotaro kotaro 64 1月 8 17:30 1 -> /dev/pts/1 | |
lr-x------ 1 kotaro kotaro 64 1月 8 17:30 10 -> /home/kotaro/script/input.txt | |
lr-x------ 1 kotaro kotaro 64 1月 8 17:30 11 -> /home/kotaro/script/input.txt | |
lr-x------ 1 kotaro kotaro 64 1月 8 17:30 12 -> /home/kotaro/script/input.txt | |
lr-x------ 1 kotaro kotaro 64 1月 8 17:30 13 -> /home/kotaro/script/input.txt |
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
=IF(A1="", "", IF(WEEKDAY(A1, 2)=1, "月", IF(WEEKDAY(A1, 2)=2, "火", IF(WEEKDAY(A1, 2)=3, "水", IF(WEEKDAY(A1, 2)=4, "木", IF(WEEKDAY(A1, 2)=5, "金", IF(WEEKDAY(A1, 2)=6, "土", IF(WEEKDAY(A1, 2)=7, "日")))))))) |
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
/* | |
* 参考サイト | |
* http://d.hatena.ne.jp/gungnir_odin/20091129/1259333223 | |
*/ | |
public class Utils { | |
public static String inputStreemToString(InputStream in) throws IOException{ | |
BufferedReader reader = | |
new BufferedReader(new InputStreamReader(in, "UTF-8"/* 文字コード指定 */)); | |
StringBuffer buf = new StringBuffer(); |
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
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64) | |
* Documentation: https://help.ubuntu.com/ | |
The programs included with the Ubuntu system are free software; | |
the exact distribution terms for each program are described in the | |
individual files in /usr/share/doc/*/copyright. | |
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by | |
applicable law. |
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
rackhuber@takashi209:~$ uname -a | |
Linux takashi209.rackbox.net 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux | |
rackhuber@takashi209:~$ cat /proc/cpuinfo | |
processor : 0 | |
vendor_id : GenuineIntel | |
cpu family : 6 | |
model : 15 | |
model name : Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz | |
stepping : 11 | |
microcode : 0x1 |
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
rackhuber@takashi209:~$ pwd | |
/home/rackhuber | |
rackhuber@takashi209:~$ ls -l | |
total 4 | |
drwxrwxr-x 3 rackhuber rackhuber 4096 Apr 24 01:42 perl |
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
public class HelloWorld { | |
public static void main(String args[]) { | |
new HelloWorld().getMessage(); | |
} | |
public void getMessage(){ | |
System.out.println("HelloWorld!"); | |
} | |
} |
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.net.NetworkInterface; | |
import java.net.SocketException; | |
import java.util.Enumeration; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Set; | |
public class SampleGetMacAddress { | |
public static void main(String args[]) { | |
try { |
OlderNewer