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
// run with `spring run --watch vaadin.groovy` | |
@Grab('com.vaadin:vaadin-spring-boot-starter:1.2.0') | |
import com.vaadin.ui.* | |
@com.vaadin.spring.annotation.SpringUI | |
@com.vaadin.annotations.Theme("valo") | |
class MyUI extends UI { | |
protected void init(com.vaadin.server.VaadinRequest request) { | |
setContent(new Label("Hello World")) | |
} |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("zeit.de") { | |
* { | |
font-family: "Times New Roman" !important; | |
letter-spacing: inherit !important; | |
} | |
} |
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
@Grapes([ | |
@Grab('org.vaadin.spring:spring-boot-vaadin:0.0.5.RELEASE'), | |
@Grab('com.vaadin:vaadin-server:7.4.6'), | |
@Grab('com.vaadin:vaadin-client-compiled:7.4.6'), | |
@Grab('com.vaadin:vaadin-themes:7.4.6'), | |
]) | |
import org.vaadin.spring.annotation.VaadinUI | |
import com.vaadin.server.VaadinRequest | |
import com.vaadin.ui.* |
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
@-moz-document domain("gamestar.de") { | |
noscript > * { display: none !important } | |
} |
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
#egg-sidebar-module { display: none } |
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
@GrabResolver(name='vaadinAddons', root='http://maven.vaadin.com/vaadin-addons', m2Compatible='true') | |
@Grapes([ | |
@Grab('org.vaadin.spring:spring-boot-vaadin:0.0.3'), | |
@Grab('com.vaadin:vaadin-server:7.4.0.beta2'), | |
@Grab('com.vaadin:vaadin-client-compiled:7.4.0.beta2'), | |
@Grab('com.vaadin:vaadin-themes:7.4.0.beta2'), | |
@Grab('org.vaadin:elements:0.1.1'), | |
]) | |
import org.vaadin.spring.VaadinUI | |
import com.vaadin.server.VaadinRequest |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("stackoverflow.com") { | |
body { | |
color: black; | |
background-color: #999; | |
font-family: "Liberation Sans"; | |
} | |
.excerpt { color: black } | |
} |
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
@Grapes([ | |
@Grab('org.vaadin.spring:spring-boot-vaadin:0.0.3'), | |
@Grab('com.vaadin:vaadin-server:7.4.0.beta1'), | |
@Grab('com.vaadin:vaadin-client-compiled:7.4.0.beta1'), | |
@Grab('com.vaadin:vaadin-themes:7.4.0.beta1'), | |
]) | |
import org.vaadin.spring.VaadinUI | |
import com.vaadin.server.VaadinRequest | |
import com.vaadin.ui.* |
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 groovy.lang.BenchmarkInterceptor | |
class Bench { | |
static final String CSV = 'csv.csv' | |
void runOriginal() { | |
BigDecimal tot = 0G | |
new File(CSV).splitEachLine(";") { row -> | |
try { |
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
/* fluent run and test caller to get rid of if-else-cascades */ | |
class RunAndCheck { | |
final Optional input | |
Optional output | |
RunAndCheck(Optional input=null) { this.input = input } | |
static RunAndCheck start(Closure action) { new RunAndCheck().run(action) } |