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 a | |
object Main { | |
//implicit val it: String => Any = s => println(s) | |
def f(text: String)(implicit proc: String ⇒ Any) { | |
proc(text) | |
} | |
// def f(text: String) { | |
// //proc(text) | |
// } |
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 t; | |
public class Context { | |
public Message getMessage() { | |
return new Message(); | |
} | |
} |
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 t; | |
public class Strings { | |
public static String join(Object[] args) { | |
if (args == null || args.length == 0) { | |
return ""; | |
} | |
StringBuilder sb = new StringBuilder(); | |
sb.append(args[0]); | |
for (int i = 1, len = args.length; i < len; i++) { |
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 org.eform.engine.core | |
import java.util.List | |
import org.eform.engine.api.FieldDefineItem | |
import org.eform.engine.api.FormDefineMetadata | |
import org.eform.engine.api.FormDefineMetadataParser | |
import org.jsoup.Jsoup | |
import org.jsoup.nodes.Document | |
import static extension com.google.common.base.Preconditions.* |
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
@echo off | |
set SCRIPT_DIR=%~dp0 | |
java -noverify -jar "%SCRIPT_DIR%loop.jar" %* |
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.ArrayList; | |
import java.util.List; | |
interface A { } | |
class B implements A { } | |
public class TT { | |
@SuppressWarnings("unchecked") | |
public static void main(String[] args) { |
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
@echo off | |
set SCRIPT_DIR=%~dp0 | |
java -noverify -Xmx512M -jar "%SCRIPT_DIR%fregerepl.jar" %* |
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 | |
import ( | |
"io" | |
"net/http" | |
"github.com/bmizerany/pat" | |
"log" | |
"runtime" | |
"time" | |
) |
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
trait Lang{ | |
def name: String | |
} | |
def jsonObject[T](json: String)(implicit t: Manifest[T]) { | |
//运行时创建T的子类、实现方法获取json属性的逻辑、加载类 | |
//并且实例化 | |
} | |
Lang lang = jsonObject[Lang]("{name:'test'}") |
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 javafx.application.Application; | |
import javafx.stage.Stage; | |
import javafx.scene.Group; | |
import javafx.scene.Scene; | |
import javafx.scene.text.Text; | |
public class HelloWorld extends Application { | |
public static void main(String[] args) { | |
HelloWorld.launch(args); |