Skip to content

Instantly share code, notes, and snippets.

View CodeDrivenMitch's full-sized avatar

Mitchell Herrijgers CodeDrivenMitch

View GitHub Profile
@CodeDrivenMitch
CodeDrivenMitch / send_command_with_metadata.kt
Last active May 27, 2021 06:05
send_command_with_metadata.kt
val metaData = MetaData.from(mapOf("username" to "hansklok"))
val command = CreateProfileCommand("morlack", "Mitchell Herrijgers")
commandGateway.sendAndWait<Any>(GenericCommandMessage(command, metaData))
private function getObjectInfoByType($objectType)
{
switch ($objectType) {
case "FoodStand":
return 'prices';
break;
case "Toilet":
return 'prices';
break;
case "MarketStall":
package org.insidion.test.jsoupexperiment;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="MainUI">
<grid id="27dc6" binding="mainPanel" layout-manager="GridLayoutManager" row-count="6" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="586" height="337"/>
</constraints>
<properties/>
<border type="none"/>
<children>