Skip to content

Instantly share code, notes, and snippets.

View stevenliebregt's full-sized avatar

Steven Liebregt stevenliebregt

View GitHub Profile
@stevenliebregt
stevenliebregt / README.md
Last active March 22, 2023 18:09
Tutorial to add JavaFX 11 to Java 11 in Eclipse

How to use JavaFX 11 with Java 11 in Eclipse IDE?

Note!

Be sure you are using Java 11, these methods are specifically written for Java 11 since that's the version where JavaFX became separated.
You can also use the official OpenJFX tutorial to find out how to install and use JavaFX 11.
Alt+30 ▲
Alt+31 ▼
Alt+16 ►
Alt+17 ◄
@stevenliebregt
stevenliebregt / clone-rawneal.sh
Last active March 16, 2020 14:12
Clone All RawNeal because I am lazy
CLONE_METHOD=${1:-ssh}
BASE_CLONE_COMMAND="git clone"
REPO_OWNER=Cdalmaij
declare -a REPOS=(
"Proof_Of_Concept"
"Backend"
"Frontend_Hybrid"
"Frontend_Browser"
"Architecture_Models"
{
"file": [
{
"nodeDefinitions": [
{
"nodeDefinition": [
{
"type": 3,
"text": "A"
},
@stevenliebregt
stevenliebregt / git-clean-branches.sh
Created June 5, 2020 06:12
Clean up your local Git branches
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
@stevenliebregt
stevenliebregt / settings.json
Created November 17, 2020 08:03
MS Terminal Settings Backup
// This file was initially generated by Windows Terminal 1.1.2233.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@stevenliebregt
stevenliebregt / sort.ts
Created May 19, 2022 11:23
Sort a list of objects with { id: <number> } by another list containing the order of those ids
/**
* Helper type for the 'sortByListOfIds' function so we can guarantee the object has an 'id' property.
*/
export type WithId = {
id: number;
};
/**
* Sort an array of objects in place by the 'id' key in the object.
*
@stevenliebregt
stevenliebregt / serializable_parameters.rs
Last active July 14, 2023 17:58
Serializable parameters
#[cfg(test)]
mod tests {
use postgres_types::{ToSql, FromSql};
use serde::{Deserialize, Serialize};
use serde_json::json;
#[test]
fn it_works() {
#[derive(Debug, Serialize, Deserialize, ToSql, FromSql)]