Skip to content

Instantly share code, notes, and snippets.

View dustinkredmond's full-sized avatar

Dustin Redmond dustinkredmond

View GitHub Profile
@dustinkredmond
dustinkredmond / HTML Email in ABAP with Image
Created November 9, 2021 15:11 — forked from weiserman/HTML Email in ABAP with Image
This is an example ABAP program which sends an HTML email from SAP system. It includes an image which is uploaded via transaction SMW0
View HTML Email in ABAP with Image
*&---------------------------------------------------------------------*
*& Report YMAIL
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ymail.
@dustinkredmond
dustinkredmond / App.java
Created September 22, 2021 01:54
Minimize window and allow FXTrayIcon to exist in system tray
View App.java
package test;
import com.dustinredmond.fxtrayicon.FXTrayIcon;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
public class App extends Application {
@dustinkredmond
dustinkredmond / CSVTableView.java
Created March 10, 2021 20:00
Class to create a JavaFX TableView from a CSV file
View CSVTableView.java
package com.jfxdev.controls;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
@dustinkredmond
dustinkredmond / RunningJavaFXExample.java
Created February 18, 2021 20:16
Class to get information about running JavaFX applications on the current machine
View RunningJavaFXExample.java
package com.dustinredmond;
import com.sun.tools.attach.AttachNotSupportedException;
import com.sun.tools.attach.VirtualMachine;
import com.sun.tools.attach.VirtualMachineDescriptor;
import java.io.IOException;
import java.util.List;
public class RunningJavaFXExample {
@dustinkredmond
dustinkredmond / MoveMouse.java
Created October 23, 2020 13:18
Periodically moves the mouse pointer
View MoveMouse.java
package com.dustinredmond.movemouse;
import java.awt.*;
/**
* Moves mouse one pixel at a time, barely noticeable to the end user,
* useful for preventing the PC going to sleep. I had a Linux box that
* for some reason would still go to sleep, even with correct settings...
*
* Pass as an argument the number of seconds between mouse moves (an integer number).
@dustinkredmond
dustinkredmond / stringutils.py
Last active April 12, 2022 00:30
Emulates Java's StringBuilder and StringJoiner, sort of.
View stringutils.py
class StringBuilder:
"""
Works like Java's StringBuilder
"""
def __init__(self, initial_string=None):
if initial_string is not None:
self.string = initial_string
else:
self.string = ""
def append(self, string):