Skip to content

Instantly share code, notes, and snippets.

View MakerTim's full-sized avatar

Tim MakerTim

  • MakerTim
  • Nederland
View GitHub Profile
FROM docker.io/linuxserver/mariadb:latest
ENV MYSQL_ROOT_PASSWORD=testpass
ENV GRADLE_VERSION 7.0
ENV GRADLE_HOME /opt/gradle
LABEL maintainer="[email protected]"
RUN apt update && mkdir -p /usr/share/man/man1/ \
@MakerTim
MakerTim / ButtonAPI.lua
Last active January 30, 2021 11:31
ComputerCraft (MinecrafMod) Lua libary for making buttons, labels, images and charts on monitors or terminals
local monitors = { term = term }
local monitorsData = {}
local currentMonitor = "term"
function _findMonitors()
for index, peripheralName in pairs(peripheral.getNames()) do
if string.sub(peripheralName, 1, 7) == "monitor" then
monitors[peripheralName] = peripheral.wrap(peripheralName)
end
end
java.util.ConcurrentModificationException: null
at java.util.TreeMap$PrivateEntryIterator.nextEntry(Unknown Source) ~[?:1.8.0_121]
at java.util.TreeMap$KeyIterator.next(Unknown Source) ~[?:1.8.0_121]
at net.minecraft.world.WorldServer.func_175712_a(WorldServer.java:791) ~[oo.class:?]
at net.minecraft.world.WorldServer.func_72920_a(WorldServer.java:768) ~[oo.class:?]
at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75820_a(AnvilChunkLoader.java:391) ~[aye.class:?]
at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75816_a(AnvilChunkLoader.java:171) [aye.class:?]
at net.minecraft.world.gen.ChunkProviderServer.func_73242_b(ChunkProviderServer.java:202) [on.class:?]
at net.minecraft.world.gen.ChunkProviderServer.func_186027_a(ChunkProviderServer.java:230) [on.class:?]
at net.minecraft.world.WorldServer.func_73044_a(WorldServer.java:1006) [oo.class:?]
@MakerTim
MakerTim / loop.java
Created March 12, 2017 21:07
Recursive Loop java
private static Set<Block> findBlocksAround(Block block) {
Set<Block> blocks = new HashSet<>();
loopNeighbours(block, blocks);
return blocks;
}
private static void loopNeighbours(Block block, Set<Block> blocks) {
blocks.add(block);
for (BlockFace neighbour : BlockFace.values()) {
package nl.group7.narwall.view.agenda;
import java.time.LocalDateTime;
import java.util.Calendar;
import java.util.Optional;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.control.DatePicker;