Skip to content

Instantly share code, notes, and snippets.

View arleighdickerson's full-sized avatar
🇺🇲
🏴󠁵󠁳󠁷󠁶󠁿 Courage in the hollers

Arleigh Dickerson arleighdickerson

🇺🇲
🏴󠁵󠁳󠁷󠁶󠁿 Courage in the hollers
View GitHub Profile
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;
import org.springframework.http.server.ServletServerHttpRequest;
import org.springframework.lang.Nullable;
import org.springframework.security.core.session.SessionInformation;
plugins {
id 'org.springframework.boot'
id 'io.spring.dependency-management'
id 'java'
id 'idea'
id 'io.freefair.lombok' version "${freefairPluginVersion}" // 6.0.0-m2
}
configurations {
rt
import lombok.RequiredArgsConstructor;
import lombok.val;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.lang.NonNull;
import org.springframework.messaging.simp.config.MessageBrokerRegistry;
import org.springframework.messaging.simp.config.StompBrokerRelayRegistration;
import org.springframework.session.Session;
import org.springframework.session.web.socket.config.annotation.AbstractSessionWebSocketMessageBrokerConfigurer;
@arleighdickerson
arleighdickerson / TypedEvent.ts
Created November 16, 2021 23:02
an emitter of typed events
export interface TypedEventListener<T> {
(event: T): void;
}
export interface TypedEventDisposable {
dispose: () => void;
}
export class TypedEvent<T> {
private readonly listeners: TypedEventListener<T>[] = [];
@arleighdickerson
arleighdickerson / invariant.ts
Last active December 28, 2021 03:43
typed invariant utils
import _ from 'lodash';
const DEFAULT_ERROR_MESSAGE = 'Invariant Type Violation';
export class InvariantError extends Error {
constructor(message = DEFAULT_ERROR_MESSAGE) {
super(message);
}
}
export interface StandardAction {
type: string;
payload?: any;
error?: any;
meta?: any;
}
export interface IDispatchStore {
handleDispatch: (action: StandardAction) => void;
dispatchToken: string;
-startup
plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.900.v20180922-1751
-product
org.eclipse.epp.package.java.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.551.v20171108-1834
-data
@noDefault
--launcher.defaultAction
openFile
-vm
/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin
package io.arleigh.reporting;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardWatchEventKinds;
import java.nio.file.WatchEvent;
package io.arleigh.reporting;
import java.awt.BorderLayout;
import java.lang.reflect.Field;
import java.util.Locale;
import java.util.ResourceBundle;
import javax.swing.JPanel;
import net.sf.jasperreports.engine.DefaultJasperReportsContext;
import net.sf.jasperreports.engine.JRReport;
import net.sf.jasperreports.engine.JasperReportsContext;