Skip to content

Instantly share code, notes, and snippets.

@FlorianDe
FlorianDe / TupleListBuilder.java
Created November 6, 2019 09:55
A simple generic tuple (key/value pair) builder with the ability to dynamically filter out null values when trying to add them.
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
/**
*
* This class serves as a generic approach to create list containing related key value tuples
* represented within a list while offering the functionality to be able to dynamically filter out (don't add)
* entries where the value would be null as need for some use cases.
*
import Foundation
typealias WeightedElement<T> = (element: T, weight: Float)
enum Efficiency : CaseIterable {
case low
case normal
case high
case perfect
}
@FlorianDe
FlorianDe / DemoClient.au3
Last active June 26, 2018 23:45
AutoIt Basic Client/Server Example
$IPAdresse = @IPAddress1
$Port = 4662
TCPStartup()
$ServerSocket = TCPConnect($IPAdresse,$Port)
While 1
$Nachricht = Inputbox("","","")
TCPSend($ServerSocket,$Nachricht)
WEnd