Skip to content

Instantly share code, notes, and snippets.

Avatar

Dustin Redmond dustinkredmond

View GitHub Profile
@dustinkredmond
dustinkredmond / HTML Email in ABAP with Image
Created Nov 9, 2021 — 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 Sep 22, 2021
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 Mar 10, 2021
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 Feb 18, 2021
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 Oct 23, 2020
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 Apr 12, 2022
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):