Skip to content

Instantly share code, notes, and snippets.

View michaelamaura's full-sized avatar

Michaela Maura Elschner michaelamaura

  • Wuppertal, Germany
View GitHub Profile
@michaelamaura
michaelamaura / extensions.xml
Created August 21, 2018 12:09
jgitver in maven with length limitiation on branch name
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
<extension>
<groupId>fr.brouillard.oss</groupId>
<artifactId>jgitver-maven-plugin</artifactId>
<version>1.3.0</version>
</extension>
</extensions>
@michaelamaura
michaelamaura / A Sad Web App Notifier
Last active March 25, 2020 09:49 — forked from sdennler/A Sad Web App Notifier
Bring the necessary Desktop Notification to Outlook Web App.
Bring the necessary Desktop Notification to Outlook Web App.
package com.rwe.st.cao.gas.attila.util;
import java.util.Comparator;
import java.util.Optional;
/**
* Comparator utils for {@see Optional} types.
*/
public final class OptionalComparator {
@michaelamaura
michaelamaura / Misc.java
Created August 21, 2015 09:27
Coalesce of suppliers
public class Misc {
public static <T> T coalesce(Supplier<T>... ts) {
return Arrays.asList(ts)
.stream()
.map(Supplier::get)
.filter(Objects::nonNull)
.findFirst()
.orElse(null);
}