Instantly share code, notes, and snippets.

View FunctionalPair.java
import java.util.function.Function;
/**
* 関数インターフェースでペアを表現する。
*
*/
public class FunctionalPair {
public static void main(String[] args) {
View バルス.groovy
@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("#バルス"))
View build.gradle
import groovy.xml.MarkupBuilder
apply plugin: "java"
apply plugin: "war"
apply plugin: "eclipse"
// maven-publish, maven2Gradle, build-dashboard
// checkstyle, findbugs, jdepend, pmd
View HelloSpock.groovy
import spock.lang.*
class HelloSpock extends Specification {
@Unroll
def "length of Spock's and his friends' names"() {
expect:
name.size() == length
where:
name | length