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
| package codes.rafael.mavenpom; | |
| import org.w3c.dom.Document; | |
| import org.w3c.dom.Node; | |
| import org.w3c.dom.NodeList; | |
| import org.xml.sax.SAXException; | |
| import javax.xml.parsers.DocumentBuilderFactory; | |
| import javax.xml.parsers.ParserConfigurationException; | |
| import java.io.IOException; |
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 java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.UncheckedIOException; | |
| import java.nio.channels.FileChannel; | |
| import java.nio.charset.StandardCharsets; | |
| import java.nio.file.DirectoryStream; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.security.MessageDigest; |
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 java.util.*; | |
| import java.util.concurrent.CompletableFuture; | |
| import java.util.concurrent.CompletionStage; | |
| import java.util.concurrent.Executor; | |
| import java.util.function.BiFunction; | |
| import java.util.function.Function; | |
| public class TaskGraph<IDENTITY, INPUT, OUTPUT> implements Function<OUTPUT, CompletionStage<OUTPUT>> { | |
| private final Executor executor; |
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.tools.*; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.nio.charset.StandardCharsets; | |
| import java.nio.file.DirectoryStream; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.util.ArrayList; | |
| import java.util.List; |
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
| System.out.println(1 + 2); | |
| /exit |
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
| What is the general difference when handling timestamps? | |
| Postgres: Does not store time zone, only displays column time zone aware. | |
| Oracle: Stores time zone as part of type. | |
| What does CURRENT_TIMESTAMP return? | |
| Postgres: TIMESTAMP WITH TIMEZONE displaying in session time zone. | |
| Oracle: TIMESTAMP WITH TIMEZONE in session time zone. | |
| What happens when converting a TIMESTAMP (without time zone) with "AT TIME ZONE '<name>'"? | |
| Postgres: Assumes TIMESTAMP to be in zone <name>. |
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 java.sql.Connection; | |
| import java.sql.PreparedStatement; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.sql.Statement; | |
| import java.sql.Timestamp; | |
| import java.time.LocalDateTime; | |
| import java.time.ZoneOffset; | |
| import java.time.ZonedDateTime; | |
| import java.util.Calendar; |
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
| package net.bytebuddy.build.gradle; | |
| import net.bytebuddy.utility.OpenedClassReader; | |
| import net.bytebuddy.utility.nullability.MaybeNull; | |
| import org.objectweb.asm.*; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| public class UnwrappingClassVisitor extends ClassVisitor { |
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 oracle.jdbc.OracleConnection; | |
| import oracle.jdbc.OracleStatement; | |
| import oracle.jdbc.dcn.DatabaseChangeEvent; | |
| import oracle.jdbc.dcn.DatabaseChangeListener; | |
| import oracle.jdbc.dcn.DatabaseChangeRegistration; | |
| import oracle.jdbc.pool.OracleDataSource; | |
| import org.junit.Rule; | |
| import org.junit.Test; | |
| import org.testcontainers.Testcontainers; | |
| import org.testcontainers.containers.JdbcDatabaseContainer; |
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
| #!/bin/bash | |
| set -x | |
| set -e | |
| if [[ -z $1 ]]; then | |
| echo "Specify location of Graal VM as first argument" | |
| exit 1 | |
| fi | |
| $1/bin/gu install native-image | |
| rm -rf META-INF sample sample.build_artifacts.txt Sample.* *.jar | |
| echo "public class Sample { |
NewerOlder