Skip to content

Instantly share code, notes, and snippets.

View heruan's full-sized avatar
:octocat:
Coding

Giovanni Lovato heruan

:octocat:
Coding
View GitHub Profile
Fadcfv59klSATAZN $2a$10$RAEHbnhGi2sEDZK.4TY8U.lMPlkHpIXKTHGJ14.p1ZHleYrbVsr9m
j45rXi0OKa8u33D4 $2a$10$ATQpY70dcknzJPFfj187kuoQvONWn328xCCueeoYSXiBMnUGlMR.O
cNf3MWvfXe15eiRX $2a$10$rWzF9S.irV.lNGlICnxzPe/wT/cyo3jizPS4QrRaUDbZG2Q6t2U6.
vQ89UmH6iiOTiuKi $2a$10$ATiaYx.hTFZdjwW2MQdwzOw1eZelVrn72dyP.Xm2gzBS5sgF3SpY6
dEI9NfMIZYur8iHq $2a$10$/JEz.YV/txRYLKkufjjHUO3ythe.tqzrI2JMJVSL8F8OUVGMbn4dS
v2YWtBd5sgBl8JKg $2a$10$5pxH3FKM.yh04OTrBPIMLO5LbBswmiLd3IFcT7fTeiKj5JK.DR0OG
pfwqWrUQwT00esAl $2a$10$Knf7o5f2TL6vZisvBDv1ye1i3uJ.ntubRuBHpl.OjhIr77oug3.Q6
NiyYaHLOj2wrUTDM $2a$10$FcmaVo.AUuO5CwbMsIm.ruNwiJttjI33bvcKR0vJWTnyJNd/jXZMW
qklrYaWsh4DdwbMN $2a$10$bQV71ZDm/xWm4H7DTFYp0ehDy/zF0xCOULuZNCHC0SjLh.3rxTr5.
Ck1pFOb1tMSRb573 $2a$10$3dMTbX0.3Oh6tyImAAmUMuFaOtekFIAlkiRxtzZILau1GPElwL7/.
@heruan
heruan / commands.cli
Created January 30, 2018 08:31 — forked from darranl/commands.cli
WildFly Elytron - SSL Configuration
Client Cert authentication with fallback to username / password authentication.
# Paths
./path=elytron.project:add(path=/home/darranl/src/wildfly10/wildfly-elytron)
./path=elytron.project.jks:add(path=src/test/resources/ca/jks, relative-to=elytron.project)
./path=elytron.project.properties:add(path=src/test/resources/org/wildfly/security/auth/realm, relative-to=elytron.project)
# KeyStores
import java.util.Comparator;
import java.util.Optional;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class CustomComparatorTest {
static class CustomComparator<T> implements Comparator<T> {
@heruan
heruan / StreamDataProvider.java
Last active November 21, 2017 08:16
Transactional DataCommunicator and Grid for Flow
import java.util.function.Predicate;
import java.util.function.Supplier;
import java.util.stream.Stream;
import com.vaadin.data.provider.AbstractBackEndDataProvider;
import com.vaadin.data.provider.Query;
public class StreamDataProvider<T> extends AbstractBackEndDataProvider<T, Predicate<T>> {
private final Supplier<Stream<T>> streamSupplier;
diff --git a/flow-html-components/src/test/java/com/vaadin/ui/html/ComponentProperty.java b/flow-html-components/src/test/java/com/vaadin/ui/html/ComponentProperty.java
index bd670982ff..c92bc10f41 100644
--- a/flow-html-components/src/test/java/com/vaadin/ui/html/ComponentProperty.java
+++ b/flow-html-components/src/test/java/com/vaadin/ui/html/ComponentProperty.java
@@ -23,19 +23,20 @@ import com.vaadin.ui.Component;
public class ComponentProperty {
public String name;
- public Object defaultValue, otherValue;
+ public Object defaultValue, otherValue, clientDefault;
@heruan
heruan / DownloadStreamWriter.java
Created June 16, 2017 11:02
Vaadin Resource for FileDownload which consumes OutputStream
import java.io.IOException;
import java.io.OutputStream;
import java.util.Iterator;
import java.util.function.Consumer;
import javax.servlet.http.HttpServletResponse;
import com.vaadin.server.Constants;
import com.vaadin.server.DownloadStream;
import com.vaadin.server.VaadinRequest;
@heruan
heruan / flexbox.scss
Created January 26, 2017 14:35
Simple theme to make Valo layouts flexible
@import "../valo/valo";
.flexbox {
@include valo;
.v-layout, .v-slot {
display: flex;
flex-wrap: wrap;
}
@heruan
heruan / app.html
Created August 10, 2016 08:41 — forked from jdanyow/app.html
Aurelia Validation Demo
<template>
<require from="./registration-form"></require>
<registration-form></registration-form>
</template>
@heruan
heruan / Company.java
Created February 26, 2016 16:11
Entity with multiple reference to a composite-id foreign key throws EntityExistsException
@Entity
public class Company {
@Id
public Long id;
}
@heruan
heruan / arr.json
Created May 29, 2015 15:03
Mapping JSON parsed object instances
[
{
"name": "John",
"age": 20
},
{
"name": "Jack",
"age": 28
}
]