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
# | |
# The default server | |
# | |
server { | |
listen 80; | |
server_name _; | |
# ELB health check! | |
location ~ ^/health/(.+)$ { | |
proxy_pass http://$1_production/health; |
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
God.log_file = "/var/log/god.log" | |
God.pid_file_directory = "/etc/god/pids" | |
God.load("/etc/god/conf.d/*.rb") | |
God.load("/etc/god/conf.d/*/*.rb") |
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 may.d17; | |
public class Book { | |
// static => クラスフィールド | |
public static String material; | |
public static String shuppan; | |
// 非static => インスタンスフィールド | |
public String author; | |
public String title; |
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.*; | |
/** | |
* 電卓. | |
* @author Takashi CHIBA | |
*/ | |
public class Calc{ | |
/** 出力モード:分数 */ | |
private final int OUTPUT_FRACTION = 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
import java.io.*; | |
import java.util.*; | |
import java.awt.Point; | |
/** | |
* 倉庫でポン. | |
* @author Takashi CHIBA | |
* @version 1.02 | |
*/ | |
public class Soko{ |
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.*; | |
import java.util.*; | |
public class Soko{ | |
char[][] map; | |
char[][] mapSource; | |
int N, M, a, b, task, cost, mapIndex; | |
boolean isClear = false; | |
int[][] move = new int[][]{{1,0},{0,1},{-1,0},{0,-1}}; | |
List<Integer> log; |
NewerOlder