This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.kyori.adventure.text.Component; | |
import net.kyori.adventure.text.TextComponent; | |
import net.kyori.adventure.text.format.NamedTextColor; | |
import net.kyori.adventure.text.format.Style; | |
import net.kyori.adventure.text.format.TextDecoration; | |
import net.minestom.server.utils.StringUtils; | |
import java.util.*; | |
public class ComponentWrapper { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.kyori.adventure.text.Component; | |
import net.kyori.adventure.text.minimessage.MiniMessage; | |
public final class MiniMessageTemplate { | |
private MiniMessageTemplate() {} | |
public static final StringTemplate.Processor<Component, RuntimeException> MM = stringTemplate -> { | |
String interpolated = STR.process(stringTemplate); | |
MiniMessage mm = MiniMessage.miniMessage(); | |
return mm.deserialize(interpolated); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[WALMART] Hi, my name is -----. I will be assisting you today | |
5/28/2022, 4:41:35 PM | |
[WALMART] Hello! Welcome to Walmart Canada. Hope you’re doing well. | |
5/28/2022, 4:41:40 PM | |
[ME] Hi my order yesterday was not delivered. An agent yesterday told me to contact support today to deal with its pending status. | |
5/28/2022, 4:42:03 PM | |
[WALMART] I sincerely apologize for the inconvenience caused you. Certainly, this is not what we want our customers to experience. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.minikloon.jmonkeytest; | |
import com.jme3.material.Materials; | |
import com.jme3.scene.plugins.gltf.PBRMetalRoughMaterialAdapter; | |
import java.util.Set; | |
public class GltfLoadAsLightingMaterialAdapter extends PBRMetalRoughMaterialAdapter { | |
private static final Set<String> IGNORED_GLTF_PARAMS = Set.of( | |
"baseColorFactor", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.minikloon.particlestest; | |
import net.md_5.bungee.api.ChatColor; | |
import org.bukkit.*; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; | |
import org.bukkit.event.block.Action; | |
import org.bukkit.event.player.PlayerInteractEvent; | |
import org.bukkit.inventory.ItemStack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
“Blob” file format | |
2 bytes - magic = 0xB10B | |
1 byte (ubyte) - version, current = 0x03 | |
2 bytes (short) - xPos of chunk lowest x & lowest z | |
2 bytes (short) - zPos | |
2 bytes (ushort) - width | |
2 bytes (ushort) - depth | |
[depends] - chunk bitmask | |
-> each chunk is 1 bit: 0 if all air (missing), 1 if present | |
-> chunks are ordered zx, meaning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mini Squid</title> | |
<meta name="description" content="Mini Squid"> | |
<meta name="author" content="Minikloon"> | |
<link rel="stylesheet" href="theme.css"> | |
<link href="https://fonts.googleapis.com/css?family=Shrikhand" rel="stylesheet"> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main(args: Array<String>) { | |
val colors = listOf( | |
"#ff0000", | |
"#ffff00", | |
"#0000ff", | |
"#ff8000", | |
"#00ff00" | |
) | |
val sb = StringBuilder() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- Minecraft Crash Report ---- | |
// This doesn't make any sense! | |
Time: 14/06/18 6:29 PM | |
Description: Unexpected error | |
java.lang.NullPointerException: Unexpected error | |
at ciq.P(SourceFile:2151) | |
at dix.Y_(SourceFile:26) | |
at ciq.m(SourceFile:1252) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minikloon.worktime | |
import edu.nyu.cs.javagit.api.DotGit | |
import edu.nyu.cs.javagit.api.commands.GitLogResponse | |
import java.text.SimpleDateFormat | |
import java.util.* | |
val gitDateFormat = SimpleDateFormat("EEE MMM d HH:mm:ss yyyy Z") | |
fun main(args: Array<String>) { | |
val git = DotGit.getInstance("Skywars") |
NewerOlder