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_proxy=http://hoge:1234 docker -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
# 参考URL | |
# https://github.com/boot2docker/boot2docker/blob/master/doc/FAQ.md | |
root@boot2docker:~# cat /var/lib/boot2docker/profile | |
export http_proxy=http://host:port/ | |
export https_proxy=http://host:port/ | |
root@boot2docker:~# |
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
// You can edit this code! | |
// Click here and start typing. | |
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello, 世界") | |
} |
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 main | |
func Reverse(s string) string { | |
runes := []rune(s) | |
for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 { | |
runes[i], runes[j] = runes[j], runes[i] | |
} | |
return string(runes) |
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 main | |
func Substring(s string, i int) string { | |
runes := []rune(s) | |
return string(runes[i]) | |
} | |
func main() { | |
str := "パタトクカシーー" | |
println(Substring(str, 1) + Substring(str, 3) + Substring(str, 5) + Substring(str, 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
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(); |
OlderNewer