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.function.Function; | |
/** | |
* 関数インターフェースでペアを表現する。 | |
* | |
*/ | |
public class FunctionalPair { | |
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
@Grab(group='org.quartz-scheduler', module='quartz', version='2.2.0') | |
@Grab(group='org.twitter4j', module='twitter4j-core', version='3.0.3') | |
import org.quartz.* | |
import org.quartz.impl.StdSchedulerFactory | |
import twitter4j.TwitterFactory | |
class バルスTask { | |
public void バルス() { | |
TwitterFactory.singleton.updateStatus("#バルス")) |
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 groovy.xml.MarkupBuilder | |
apply plugin: "java" | |
apply plugin: "war" | |
apply plugin: "eclipse" | |
// maven-publish, maven2Gradle, build-dashboard | |
// checkstyle, findbugs, jdepend, pmd |
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 spock.lang.* | |
class HelloSpock extends Specification { | |
@Unroll | |
def "length of Spock's and his friends' names"() { | |
expect: | |
name.size() == length | |
where: | |
name | length |