Skip to content

Instantly share code, notes, and snippets.

View mike-neck's full-sized avatar
🏠
Working from home

mike_neck mike-neck

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