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
// here goes the conf | |
... | |
// append this | |
if (file('user.gradle').exists()) { | |
apply from: 'user.gradle' // if a user file is present, tweak the build (add tasks, ...). This file should not be in VCS. | |
} |
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
A build scan cannot be produced as an error occurred gathering build data. | |
Please report this problem via https://e.grdev.net/help and include the following via copy/paste: | |
---------- | |
Gradle version: 5.0-milestone-1 | |
Plugin version: 2.0 | |
java.lang.NoClassDefFoundError: org/gradle/api/internal/tasks/execution/ExecuteTaskBuildOperationType$Details | |
at com.gradle.scan.plugin.internal.f.a.b(SourceFile:55) | |
at com.gradle.scan.plugin.internal.f.a.a(SourceFile:30) |
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.gperfutils', module='gbench', version='0.4.3-groovy-2.4') | |
String a = 'The quick brown fox' | |
String b = 'jumps over the lazy dog' | |
int x = 1 | |
double y = 2 | |
benchmark { | |
'simple concat' { | |
String concat = a + ' ' + b + ' ' + x + ' ' + y |
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
/* | |
* Copyright 2017 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
/* | |
* Copyright 2017 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
/** | |
* An approximate port of https://github.com/s-macke/VoxelSpace | |
* using Kotlin and JavaFX. | |
* | |
* Run with : kotlinc -script voxel.kts | |
* | |
* Click on the panel to "fly". | |
* | |
* Twitter: @CedricChampeau | |
*/ |
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
/** | |
* An approximate port of https://github.com/s-macke/VoxelSpace | |
* using static Groovy and JavaFX. | |
* | |
* Click on the panel to "fly". | |
* | |
* Run with : groovy voxel.groovy | |
* | |
* Twitter: @CedricChampeau | |
*/ |
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
/opt/jdk9 ll ../jdk9-b176/lib/security/ | |
total 256K | |
-rw-r--r-- 1 cchampeau cchampeau 4.0K Jun 29 03:47 blacklist | |
-rw-r--r-- 1 cchampeau cchampeau 1.3K Jun 29 03:47 blacklisted.certs | |
-rw-r--r-- 1 cchampeau cchampeau 111K Jun 29 03:47 cacerts | |
-rw-r--r-- 1 cchampeau cchampeau 8.5K Jun 29 03:47 default.policy | |
-rw-r--r-- 1 cchampeau cchampeau 122K Jun 29 03:47 public_suffix_list.dat | |
-rw-r--r-- 1 cchampeau cchampeau 0 Jun 29 03:47 trusted.libraries | |
/opt/jdk9 ll lib/security/ | |
total 16K |
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
// Tired of AsyncTask in Android? | |
// Here's how you could write it in Groovy! | |
Fluent.async { | |
new URL('http://foo').text | |
}.then { text -> | |
textView.text = text | |
} |
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
package me.champeau.gr8confagenda.app; | |
import android.os.AsyncTask; | |
import groovy.lang.Closure; | |
/** | |
* An implementation of {@link android.os.AsyncTask} which makes it easy to deal with | |
* requests/callbacks using Groovy closures | |
*/ |