Skip to content

Instantly share code, notes, and snippets.

View TobseF's full-sized avatar
🦄
Happy Coding

Tobse TobseF

🦄
Happy Coding
  • ITscope GmbH
  • Karlsruhe, Germany
  • X @TobseF
View GitHub Profile
@TobseF
TobseF / ParseValueClassMapTest.kt
Created August 12, 2024 09:31
Test to demonstrate, that it's not possible to read a map which a generic value type as key.
package de.itscope.catalog.pricelist
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import com.fasterxml.jackson.module.kotlin.registerKotlinModule
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
/**
* Test to demonstrate, that it's not possible to read a map which a generic value type as key.
@TobseF
TobseF / KorGE-Player-Movement.kt
Created February 25, 2022 10:26
KorGE setup for super smooth player movement by keys or mouse-click
private var destination: Point = player.pos.copy()
private val playerSpeed = 6.0
private val step = 20
init {
addUpdater {
handeKeyboardControls()
}
addFixedUpdater(25.milliseconds) {
if (destination.distanceTo(player.pos) > playerSpeed) {
@TobseF
TobseF / .. MediaCreationTool.bat ..md
Created October 1, 2021 14:07 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions from 1507 to 21H1 with business (Enterprise) edition support

Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
Preview
A powerful yet simple windows 1X deployment automation tool as well!

awesome gui dialogs to pick windows version and preset action
Auto Setup choice for upgrade directly without prompts, with edition change / intelligent fallback
Create ISO choice for authoring iso file directly via DIR2ISO snippet, including any 'oem' customizations
Create USB choice for authoring usb via native MCT, including any 'oem' customizations (prompts once)
Select in MCT choice for vanilla MCT processing without 'oem' modifications, script quits straightway
control via set script vars, commandline parameters or rename script like iso 21H2 Pro MediaCreationTool.bat

@TobseF
TobseF / AnnotationParser.kt
Last active July 6, 2020 07:43
Mapstruct AnnotationParser Example
class BusinessModel{
String zip;
}
class UiModel{
String plz;
}
public interface ModelMapping extends BridgeMapping<BusinessModel, UiModel> {
@Mapping(source = "zip", target = "plz")
@TobseF
TobseF / MavenCheatSheet.md
Created January 23, 2020 09:53
📋 Maven CheatSheet

📋 Maven CheatSheet

Artefakte

Artefakt ins nexus einspielen

mvn clean deploy

Artefakt ins lokale .mvn einspielen

mvn clean install
<html>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<head>
<style>
body, table, p, section, header, footer, address {
box-sizing: border-box;
}
@TobseF
TobseF / boostnote-markdown-example.md
Last active December 10, 2020 08:31
Boostnote Markdown Example