Skip to content

Instantly share code, notes, and snippets.

View gist:06b0dd9ca656ef1358116bde8fc1a524
{
"code": "java.class.nonPublicPartOfAPI",
"old": "interface io.quarkus.annotation.processor.generate_doc.DocFormatter",
"new": "interface io.quarkus.annotation.processor.generate_doc.DocFormatter",
"justification": "ADD YOUR EXPLANATION FOR THE NECESSITY OF THIS CHANGE"
/* "classSimpleName": "DocFormatter",
"exampleUseChainInNewApi": "io.quarkus.annotation.processor.generate_doc.DocFormatter is used as parameter in method void io.quarkus.annotation.processor.generate_doc.ConfigDocElement::accept(java.io.Writer, io.quarkus.annotation.processor.generate_doc.DocFormatter) throws java.io.IOException (method void io.quarkus.annotation.processor.generate_doc.ConfigDocElement::accept(java.io.Writer, io.quarkus.annotation.processor.generate_doc.DocFormatter) throws java.io.IOException is part of the API)",
"package": "io.quarkus.annotation.processor.generate_doc",
"classQualifiedName": "io.quarkus.annotation.processor.generate_doc.DocFormatter",
"oldArchive": "io.quarkus:quarkus-extension-processo
View gist:3852c8501de791d2d31caa76415083f0
Book persistBook(ISBN isbn, BookInfo bi) {
cache(isbn, {
BookInfo.persist();
} );
}
View gist:7c530324b8812c820cf85eb7d64ebb70
docker run --ulimit memlock=-1:-1 -it --rm=true --memory-swappiness=0 --name quarkus-demo -e POSTGRES_USER=quarkus-demo -e POSTGRES_PASSWORD=quarkus-demo -e POSTGRES_DB=quarkus-demo -p 5432:5432 postgres:10.5
## use H2 instead
diff --git a/quarkus-workshop-super-heroes/super-heroes/infrastructure/docker-compose.yaml b/quarkus-workshop-super-heroes/super-heroes/infrastructure/docker-compose.yaml
index aeeeda3..40f12f4 100644
--- a/quarkus-workshop-super-heroes/super-heroes/infrastructure/docker-compose.yaml
+++ b/quarkus-workshop-super-heroes/super-heroes/infrastructure/docker-compose.yaml
@@ -7,6 +7,15 @@ services:
- "5432:5432"
volumes:
View tck - mvn clean install -s settings-example.xml
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] JSR-380 TCK Aggregator [pom]
[INFO] JSR-380 TCK Test Suite [jar]
[INFO] JSR-380 TCK Documentation [jar]
[INFO] JSR-380 TCK Container Adapter [jar]
[INFO] JSR-380 TCK Distribution [jar]
[INFO]
View foo.java
// uni
public interface Uni<T> {
static Uni<T> fromCompletionStage(CompletionStage<T> foo);
CompletionStage<T> subscribeToCompletionStage(); // start the execution eagerly (should it be named subscribeAndComplete)
U to(Class<U> clazz); // converts to whatever like Mono
U more(Class<U> clazz); // converts to whatever like Mono
...
// add operators
}
View gist:7cb1819500bc5f4e35459bd595082b61
emmanuel   master  ⋯  demo  datagrid-patterns  analytics  mvn clean install package -am -pl analytics-server
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Scanning for projects...
Downloading: http://repository.jboss.org/nexus/content/groups/public/datagrid-patterns/analytics-stream/1.0-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/datagrid-patterns/analytics-stream/1.0-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/datagrid-patterns/analytics-stream/1.0-SNAPSHOT/analytics-stream-1.0-SNAPSHOT.pom
Downloading: http://repository.jboss.org/nexus/content/groups/public/datagrid-patterns/analytics-stream/1.0-SNAPSHOT/analytics-stream-1.0-SNAPSHOT.pom
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/infinispan/infinispan-bom/9.0.0.CR3/infinispan-bom-9.0.0.CR3.pom
Downloading: http://repository.jboss.org/nexus/content/groups/publi
View pathForTypeParams
Map<@Valid OrderType, @Valid Order> orderByType; OrderType has a description, Order has a orderNumber
error on orderNumber (i.e. value().orderNumber)
orderByType[RETAIL].orderNumber
orderByType[Row=RETAIL, Column=ONLINE].orderNumber // assuming a Guava Table
error on description (i.e. key().description)
orderByType[RETAIL].key().description //how do we find "key"
orderByType[RETAIL].K().description
orderByType[RETAIL].typeParameter(K).description
View gist:24fb560560681c59c5bf8384ed2dfd0b
emmanuel@emmanuel-mbp-15r-2 debezium.io (minor *) $ rake clean preview
Using profile: development
Generating site: http://localhost:4242
Excecuting pipeline...
Downloading content...
Content downloaded.
While processing file
An error occurred: no implicit conversion of nil into String
/Users/emmanuel/Code/debezium/debezium.io/.bundle/ruby/2.1.0/gems/awestruct-0.5.7/lib/awestruct/handlers/javascript_handler.rb:28:in `basename'
/Users/emmanuel/Code/debezium/debezium.io/.bundle/ruby/2.1.0/gems/awestruct-0.5.7/lib/awestruct/handlers/javascript_handler.rb:28:in `output_filename'
View keybase.md

Keybase proof

I hereby claim:

  • I am emmanuelbernard on github.
  • I am emmanuelbernard (https://keybase.io/emmanuelbernard) on keybase.
  • I have a public key ASCRF2AtdOCvsTvKsG0jHrQ9hiAEWXePRt5kapYcBnmSGAo

To claim this, I am signing this object:

View hcann-accesstype
rawFields <- xClass.getDeclaredProperty("field");
rawProperties <- xClass.getDeclaredProperty("property");
// handle explicit ones first
for (Xmember m in rawFields) {
if(m.getAnnotations(AccessType.class).getType() == FIELD)) {
field.add(m);
rawFields.remove(m);
}
You can’t perform that action at this time.