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
import org.junit.jupiter.api.AfterEach; | |
import org.junit.jupiter.api.BeforeEach; | |
import org.junit.jupiter.api.Test; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.SQLException; | |
import java.time.OffsetDateTime; | |
import java.time.format.DateTimeFormatter; |
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 com.example.jet; | |
import com.hazelcast.core.ManagedContext; | |
import com.hazelcast.function.FunctionEx; | |
import com.hazelcast.jet.Jet; | |
import com.hazelcast.jet.JetInstance; | |
import com.hazelcast.jet.config.JetConfig; | |
import com.hazelcast.jet.config.JobConfig; | |
import com.hazelcast.jet.pipeline.Pipeline; | |
import com.hazelcast.jet.pipeline.Sinks; |
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
configurations { | |
myConfig | |
} | |
task addToMyConfig { | |
doLast { | |
println "Doing some work" | |
dependencies { | |
myConfig 'log4j:log4j:1.2.17' | |
} | |
} |
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
import java.sql.*; | |
import org.gradle.api.*; | |
import org.gradle.api.artifacts.*; | |
import org.gradle.api.tasks.*; | |
import java.util.*; | |
import java.net.*; | |
import java.io.File; | |
import java.lang.reflect.Method; | |
public abstract class AbstractSqlTask extends DefaultTask { |
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
apply plugin: 'java' | |
ext { | |
target = 'org.springframework:spring-context:4.3.9.RELEASE' | |
} | |
configurations { | |
monkeyPatchNonTransitive { transitive = false } | |
monkeyPatchTransitive | |
} |
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
C:\misc\backup>gradle backup --debug | |
08:56:18.509 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized native services in: C:\Users\43807627\.gradle\native | |
08:56:18.619 [DEBUG] [org.gradle.internal.nativeintegration.services.NativeServices] Native-platform posix files is not available. Continuing with fallback. | |
08:56:18.619 [DEBUG] [org.gradle.internal.nativeintegration.filesystem.services.FileSystemServices] Using JDK 7 file service org.gradle.internal.nativeintegration.filesystem.jdk7.WindowsJdk7Symlink | |
08:56:19.289 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding IP addresses for network interface Software Loopback Interface 1 | |
08:56:19.289 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a loopback interface? true | |
08:56:19.289 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a multicast interface? true | |
08:56:19.289 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding loopback address /12 |
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
buildscript { | |
ext { | |
grailsVersion = project.grailsVersion | |
} | |
repositories { | |
//mavenLocal() | |
maven { | |
//url "https://repo.grails.org/grails/core" | |
url uri('C:/workspace/offline/build/offline-repo') | |
} |
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
207.61.224.54 - - [06/Jan/2014:05:44:15 +0000] "GET / HTTP/1.1" 200 606 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/6.1.1 Safari/537.73.11" | |
207.61.224.54 - - [06/Jan/2014:05:44:16 +0000] "GET /assets/1.0-SNAPSHOT/tapestry/default.css HTTP/1.1" 200 2089 "http://tapestry-atmosphere.uklance.cloudbees.net/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/6.1.1 Safari/537.73.11" | |
207.61.224.54 - - [06/Jan/2014:05:44:16 +0000] "GET /assets/1.0-SNAPSHOT/ctx/bootstrap/css/bootstrap.css HTTP/1.1" 200 17911 "http://tapestry-atmosphere.uklance.cloudbees.net/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/6.1.1 Safari/537.73.11" | |
207.61.224.54 - - [06/Jan/2014:05:44:34 +0000] "GET /chatdemo;jsessionid=a5g6txxdf2uo10detrcbjztn HTTP/1.1" 200 3000 "http://tapestry-atmosphere.uklance.cloudbees.net/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.73.11 ( |
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
<!-- page.tml --> | |
<t:grid source="myCustomGridDataSource" ... /> | |
// Page.java | |
public GridDataSource getMyCustomGridDataSource() { | |
final List<Document> docs = documentDAO.getAll(); | |
GridDataSource wrapper = new CollectionGridDataSource(docs) { | |
public int getAvailableRows() { | |
return super.getAvailableRows() + 1; | |
} |
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
@Property | |
private Country country; | |
@Property | |
private City city; | |
public Country[] getCountries() { | |
return new Country[] { ... }; | |
} | |
NewerOlder