This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>System Name | Architecture Communication Canvas</title> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"env": { | |
"es2022": true, | |
"browser": true, | |
"cypress/globals": true | |
}, | |
"extends": ["eslint:recommended", "plugin:cypress/recommended"], | |
"parserOptions": { | |
"ecmaVersion": 2022, | |
"sourceType": "module" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.List; | |
import java.util.Objects; | |
import java.util.concurrent.CopyOnWriteArrayList; | |
import java.util.function.Consumer; | |
public class MessageBus { | |
private static final MessageBus DEFAULT = new MessageBus(); | |
private final List<Consumer<Object>> consumers = new CopyOnWriteArrayList<>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# list all installed packages | |
# > pkgutil --pkgs | |
packageid=$1 | |
set -e | |
cd / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
NewerOlder