Skip to content

Instantly share code, notes, and snippets.

Ergebnisprotokoll

Projekt

Foobar

Besprechungsdatum

21.04.2017

Ort

Musterhausen

Thema

Foobar

Teilnehmer
  • Max Mustermann (AG)

@falkoschumann
falkoschumann / architekturueberblick.adoc
Last active April 13, 2020 08:39
Architekturüberblick

Architekturüberblick

Problemstellung

Mission Statement

@falkoschumann
falkoschumann / build.gradle
Last active March 14, 2022 11:36
javapackager with Gradle
group 'de.muspellheim'
version '1.0.0'
apply plugin: 'java'
sourceCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
repositories {
jcenter()
@falkoschumann
falkoschumann / build.gradle
Last active October 20, 2023 19:45
Gradle project starter
import org.apache.tools.ant.filters.FixCrLfFilter
import java.time.LocalDate
plugins {
id 'application'
id 'checkstyle'
id 'jacoco'
id 'java'
id 'com.diffplug.spotless' version '6.20.0'
@falkoschumann
falkoschumann / FxmlView.java
Last active July 20, 2023 19:24
Using JavaFX view and view controller with factory method.
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
public class FXMLControllerFactory {
private FXMLControllerFactory() {}
public static <T> T newController(Class<T> controllerType, Stage stage) {
var filename = "/%s.fxml".formatted(controllerType.getSimpleName());
try {
var url = controllerType.getResource(filename);
@falkoschumann
falkoschumann / projektverzeichns.md
Last active December 19, 2020 09:31
Projektverzeichnis

Projektverzeichnis

Eine beispielhafte Verzeichnisstruktur für Projekte

  • Projekt 1
    • 1 Projektmanagement
      • 1 Angebot und Kalkulation
      • 2 Korrespondenz
  • 3 Rechnung
@falkoschumann
falkoschumann / EventEmitter.java
Last active May 12, 2023 18:16
This is a utility class that can be used by beans that emit events.
import java.util.List;
import java.util.Objects;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.function.Consumer;
public class EventEmitter<T> {
private final List<Consumer<T>> listeners = new CopyOnWriteArrayList<>();
public EventEmitter() {
// public ctor
@falkoschumann
falkoschumann / ConfigurableResponses.java
Last active May 12, 2023 18:16
Java test helper classes
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
public class ConfigurableResponses<T> {
private final Object response;
private ConfigurableResponses(Object value) {
response = value;
}
@falkoschumann
falkoschumann / uninstall-pkg.sh
Created February 20, 2023 18:13
Uninstall macOS pkg
#!/usr/bin/env bash
# list all installed packages
# > pkgutil --pkgs
packageid=$1
set -e
cd /
@falkoschumann
falkoschumann / .editorconfig
Last active April 16, 2024 16:02
Common files for a new project.
# EditorConfig is awesome: https://EditorConfig.org
# Based on following Google Style Guides:
# - C++: https://google.github.io/styleguide/cppguide.html
# - C#: https://google.github.io/styleguide/csharp-style.html
# - Go: https://google.github.io/styleguide/goguide.html
# - HTML/CSS: https://google.github.io/styleguide/htmlcssguide.html
# - JavaScript: https://google.github.io/styleguide/jsguide.html
# - Java: https://google.github.io/styleguide/javaguide.html
# - Python: https://google.github.io/styleguide/pyguide.html