Skip to content

Instantly share code, notes, and snippets.

View teabot's full-sized avatar

Elliot West teabot

View GitHub Profile
@mathieucarbou
mathieucarbou / toolchains.groovy
Last active February 22, 2024 11:08
Maven toolchains.xml generator
#!/usr/bin/env groovy
import groovy.xml.MarkupBuilder
import java.nio.file.Files
import java.nio.file.Paths
def writer = new StringWriter()
def xml = new MarkupBuilder(writer)
xml.doubleQuotes = true
xml.mkp.xmlDeclaration([version: '1.0', encoding: 'UTF-8'])
@alanwhite
alanwhite / Indigesturing.java
Last active March 4, 2024 08:19
Sample code to capture MacOS touchpad gestures
package xyz.arwhite.swing;
import java.awt.Dimension;
import java.awt.HeadlessException;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseAdapter;
import javax.swing.JFrame;
import javax.swing.JPanel;