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
@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;