This file contains hidden or 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 javax.swing.UIManager | |
| import groovy.ui.Console | |
| import org.codehaus.groovy.control.CompilerConfiguration | |
| import org.codehaus.groovy.control.customizers.ASTTransformationCustomizer | |
| import groovy.transform.* | |
| def transformations = [ThreadInterrupt, Canonical] | |
| Console.metaClass.newScript = { ClassLoader parent, Binding binding -> | |
| def config = new CompilerConfiguration() |
This file contains hidden or 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='nekohtml', module='nekohtml', version='1.9.6.2') | |
| @Grab(group='org.jdom', module='jdom', version='1.1') | |
| import org.cyberneko.html.HTMLConfiguration | |
| import org.apache.xerces.parsers.DOMParser | |
| import org.xml.sax.InputSource | |
| import org.jdom.input.DOMBuilder | |
| import org.jdom.Document | |
| import org.jdom.Element | |
| import org.jdom.filter.ElementFilter |
This file contains hidden or 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.animation.Interpolator | |
| import javafx.animation.TranslateTransition | |
| import javafx.application.Application | |
| import javafx.event.Event | |
| import javafx.event.EventHandler | |
| import javafx.geometry.Pos | |
| import javafx.scene.Group | |
| import javafx.scene.Scene | |
| import javafx.scene.control.Button | |
| import javafx.scene.control.TextBox |
This file contains hidden or 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('org.twitter4j:twitter4j-core:2.2.3') | |
| import twitter4j.* | |
| import twitter4j.conf.* | |
| def conf = new ConfigurationBuilder() | |
| .setOAuthConsumerKey('consumer key') | |
| .setOAuthConsumerSecret('consumer secret') | |
| .setOAuthAccessToken('access token') | |
| .setOAuthAccessTokenSecret('access token secret') |
This file contains hidden or 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
| defaultTasks 'ftp' | |
| repositories{ | |
| flatDir(dirs:["lib"]) | |
| } | |
| configurations { | |
| ftpAntTask | |
| } | |
| dependencies { |
This file contains hidden or 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
| configurations { | |
| findbugs | |
| } | |
| dependencies { | |
| findbugs "com.google.code.findbugs:findbugs-ant:1.3.9" | |
| } | |
| findbugsOutputDirName = "findbugs" | |
| findbugsReportDir = new File(reportsDir, findbugsOutputDirName) |
This file contains hidden or 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
| configurations { | |
| emma | |
| } | |
| dependencies { | |
| emma "emma:emma:2.1.5320" | |
| emma "emma:emma_ant:2.1.5320" | |
| } | |
| tmpDir = new File(buildDir, "tmp") |
This file contains hidden or 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('org.twitter4j:twitter4j-stream:2.2.3') | |
| import twitter4j.* | |
| new TwitterStreamFactory().instance.with { | |
| addListener([onStatus:{println "@${it.user.screenName}: ${it.text}"}] as UserStreamAdapter); user() | |
| } |
This file contains hidden or 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('org.twitter4j:twitter4j-core:[2.1,)') | |
| import twitter4j.* | |
| new TwitterFactory().instance.updateStatus "${args[0]} #twitter4j_reading" |
This file contains hidden or 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('org.twitter4j:twitter4j-core:2.2.3') | |
| @Grab('org.twitter4j:twitter4j-stream:2.2.3') | |
| import twitter4j.* | |
| def twitter = new TwitterFactory().instance | |
| def stream = new TwitterStreamFactory().getInstance(twitter.OAuthAccessToken) | |
| def print = {println "@${it.user.screenName}: ${it.text}"} | |
| stream.addListener([onStatus:print] as UserStreamAdapter) | |
| stream.user() |