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
| zulu8.44.0.11-ca-jdk8.0.242-win_x64\bin>javadoc.exe -quiet -d destination -sourcepath quarkus\extensions\panache\hibernate-orm-panache\runtime\src\main\java\ io.quarkus.hibernate.orm.panache |
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.concurrent.*; | |
| /** | |
| * A good tutorial can be found here: | |
| * @see <a href="https://www.baeldung.com/java-completablefuture"> | |
| * https://www.baeldung.com/java-completablefuture</a> | |
| */ | |
| class Async1 { | |
| static String f1(String result) { |
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 org; | |
| import java.util.concurrent.*; | |
| import java.util.*; | |
| import java.net.URI; | |
| import javax.annotation.PostConstruct; | |
| import javax.inject.Inject; | |
| import javax.ws.rs.Consumes; |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
| http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>lsc.tests</groupId> | |
| <artifactId>min-maven-pom</artifactId> | |
| <version>1</version> |
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
| // Generate the app classes list | |
| java -XX:DumpLoadedClassList=classes.cds -jar myApp.jar | |
| // Generate the shared archive | |
| java -Xshare:dump -XX:SharedClassListFile=classes.cds -XX:SharedArchiveFile=app-cds.jsa --class-path myApp.jar | |
| // and use it | |
| java -XX:SharedArchiveFile=app-cds.jsa -jar myApp.jar | |
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
| $type perf42 | |
| perf42 is aliased to `sudo env "PATH=/usr/local/sbin:/usr/local/bin" perf stat -e cpu-clock -r42` |
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
| # Want to start a PostgreSQL server on the side with Docker? | |
| docker run --ulimit memlock=-1:-1 -it --rm=true --memory-swappiness=0 \ | |
| --name postgres-quarkus-hibernate -e POSTGRES_USER=hibernate \ | |
| -e POSTGRES_PASSWORD=hibernate -e POSTGRES_DB=hibernate_db \ | |
| -p 5432:5432 postgres:10.5 | |
| # then you can use the client: pgadmin3 connecting to localhost:5432 |
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
| #include <string.h> | |
| #include <stdio.h> | |
| int main() { | |
| printf("%s", "/home/username/projects2/p2.geany\n"); | |
| char path[100] = "/home/username/projects2/p2.geany"; |
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
| #include <string.h> | |
| #include <stdio.h> | |
| int main() { | |
| printf("%s", "/home/username/projects2/p2.geany\n"); | |
| char path[100] = "/home/username/projects2/p2.geany"; |
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
| /* | |
| IT DOES NOT WORK | |
| there was a bug in the code ... | |
| It was returning to early from isEverythingFinal and so | |
| not checking all fields. | |
| For example, it does not work for String: |