投稿されたすべてのコード一覧
public interface Foo { public void foo(); public void bar();
public class Foo { public void foo() { try { System.out.println("foo start");
public class Main { public static void main(String[] args) { Foo foo = new Foo(); foo.foo();
public static String getMethdodName() { StackTraceElement stackTraceElement = Thread.currentThread().getStackTrace()[2]; String className = stackTraceElement.getClassName(); String methodName = stackTraceElement.getMethodName(); return className + "." + methodName;
/* 2値化のしきい値 */ public static final double THRESHOLD = 128; /* 2値化のサンプル */ private static void doProcess() {
/* 2値化のしきい値 */ public static final double THRESHOLD = 255 / 2.0; /* 2値化のサンプル */ private static void doProcess() {
import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO;
$ sudo curl -o /usr/local/bin/css2less https://raw.github.com/sickill/css2less/master/css2less.rb$ $ sudo chmod a+x /usr/local/bin/css2less