Skip to content

Instantly share code, notes, and snippets.

View ThomasPr's full-sized avatar

Thomas Preißler ThomasPr

View GitHub Profile
@ThomasPr
ThomasPr / CartesianProductUtil.java
Created March 8, 2020 15:25
Compute the Cartesian Product of many lists using Java Streams
import static java.util.Collections.unmodifiableList;
import static java.util.stream.Collectors.toList;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.BinaryOperator;
import java.util.stream.Stream;
public final class CartesianProductUtil {
@ThomasPr
ThomasPr / devise.de.yml
Created February 13, 2012 20:58
german (Du) i18n for devise 2.0
de:
errors:
messages:
expired: "ist abgelaufen, bitte neu anfordern"
not_found: "nicht gefunden"
already_confirmed: "wurde bereits bestätigt"
not_locked: "ist nicht gesperrt"
not_saved:
one: "Konnte %{resource} nicht speichern: ein Fehler."
other: "Konnte %{resource} nicht speichern: %{count} Fehler."