Skip to content

Instantly share code, notes, and snippets.

@tachiba
tachiba / default.conf
Created August 3, 2012 10:20
Elastic Load Balancer's health check on nginx
#
# The default server
#
server {
listen 80;
server_name _;
# ELB health check!
location ~ ^/health/(.+)$ {
proxy_pass http://$1_production/health;
@tachiba
tachiba / god.rb
Created July 29, 2012 13:01
got main configuration file
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")
package may.d17;
public class Book {
// static => クラスフィールド
public static String material;
public static String shuppan;
// 非static => インスタンスフィールド
public String author;
public String title;
import java.util.*;
/**
* 電卓.
* @author Takashi CHIBA
*/
public class Calc{
/** 出力モード:分数 */
private final int OUTPUT_FRACTION = 1;
import java.io.*;
import java.util.*;
import java.awt.Point;
/**
* 倉庫でポン.
* @author Takashi CHIBA
* @version 1.02
*/
public class Soko{
@tachiba
tachiba / hgoe.java
Created May 11, 2011 02:03
hogehoge
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;