Skip to content

Instantly share code, notes, and snippets.

@LosD
LosD / typings.d.ts
Created December 28, 2017 15:21
TypeScript Typings for Trumbowyg
interface JQuery {
// noinspection JSUnusedLocalSymbols
trumbowyg(command: 'html', content?: string): string;
// noinspection JSUnusedLocalSymbols
trumbowyg(command: 'openModal', options: JQueryTrumbowyg.ModalOptions): JQuery;
// noinspection JSUnusedLocalSymbols
trumbowyg(command: 'openModalInsert', options: JQueryTrumbowyg.ModalInsertOptions): JQuery;
import java.util.Random;
class TestTypeAverages {
static final long TEST_COUNT = 1000000000L;
public static void main(String[] args) {
int errorCount = 0;
Random generator = new Random();
for (long i = 0; i < TEST_COUNT; i++) {
long sum = generator.nextLong();
@LosD
LosD / Thread dump lost component connection
Last active October 12, 2015 09:32
DataCleaner thread dump from when input columns dissappeared from an unrelated change.
"AWT-EventQueue-0@5581" prio=6 tid=0x38 nid=NA runnable
java.lang.Thread.State: RUNNABLE
at org.datacleaner.job.builder.AbstractComponentBuilder.setConfiguredProperty(AbstractComponentBuilder.java:292)
at org.datacleaner.job.builder.AnalyzerComponentBuilder.setConfiguredProperty(AnalyzerComponentBuilder.java:326)
at org.datacleaner.job.builder.AnalyzerComponentBuilder.setConfiguredProperty(AnalyzerComponentBuilder.java:58)
at org.datacleaner.widgets.properties.MultipleInputColumnsPropertyWidget.onOutputChanged(MultipleInputColumnsPropertyWidget.java:378)
at org.datacleaner.job.builder.TransformerComponentBuilder.onOutputChanged(TransformerComponentBuilder.java:169)
at org.datacleaner.job.builder.TransformerComponentBuilder.getOutputColumns(TransformerComponentBuilder.java:151)
at org.datacleaner.job.builder.TransformerComponentBuilder.onConfigurationChanged(TransformerComponentBuilder.java:248)
at org.datacleaner.job.builder.AbstractComponentBuilder.setConfiguredProperty(AbstractComp