Skip to content

Instantly share code, notes, and snippets.

View Col-E's full-sized avatar

Matt Col-E

View GitHub Profile
@Col-E
Col-E / Identifiers.md
Created November 3, 2019 22:06
The case for UniqueId over Legacy Name

TestIdentifier - UniqueID vs Legacy Name

Format

  • @Test
    • Unique ID: [engine:<engine-name>][class:<quantified-class-name>]/[method:<method-name>(<quantified-class-name>...)]
    • Legacy Name: <method-name>(<simple-class-name>...)
  • @ParameterizedTest
    • Unique ID: [engine:<engine-name>][class:<quantified-class-name>]/[test-timplate:<method-name>(<quantified-class-name>...)]/[test-template-invocation:<parameter-set-number>]
  • Legacy Name: (...)[]
@Col-E
Col-E / Java2Html.java
Last active July 12, 2018 00:25
Java-2-HTML converter
package me.coley.j2h;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.SplitPane;
import javafx.scene.control.TextArea;
import javafx.stage.Stage;
// https://mvnrepository.com/artifact/org.apache.commons/commons-text
import org.apache.commons.text.StringEscapeUtils;
@Col-E
Col-E / SmoothishScrollpane.java
Created June 24, 2018 23:59
JavaFX ScrollPane with smooth scrolling
import javafx.animation.Animation.Status;
import javafx.animation.Interpolator;
import javafx.animation.Transition;
import javafx.event.EventHandler;
import javafx.scene.Node;
import javafx.scene.control.ScrollPane;
import javafx.scene.input.ScrollEvent;
import javafx.scene.layout.VBox;
import javafx.util.Duration;