Skip to content

Instantly share code, notes, and snippets.

View wyatt-herkamp's full-sized avatar
👋
Random Rust Projects

Wyatt Herkamp wyatt-herkamp

👋
Random Rust Projects
View GitHub Profile
public void BroudCastWinners() {
StringBuilder WinnersList = new StringBuilder();
int WinnerSize = Winners.size() - 1;
for (Player p : Winners) {
// Checking if it is the last player?
if (Winners.get(WinnerSize) == p) {
WinnersList.append("and " + p.getName());
} else {
@wyatt-herkamp
wyatt-herkamp / KingTuxUtils.java
Last active December 23, 2017 20:21
KingTuxUtils
import org.bukkit.ChatColor;
import java.util.ArrayList;
import java.util.List;
/**
* @author KingTux
* Basic Utils for Bukkit and Java
*/
public class KingTuxUtils {

Keybase proof

I hereby claim:

  • I am wherkamp on github.
  • I am kingtux (https://keybase.io/kingtux) on keybase.
  • I have a public key ASC3EhTgnFjcqI3IWyRS5mlBHzVmsRV4HxGYA01dEgNsJAo

To claim this, I am signing this object:

[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
#After=mysqld.service
#After=postgresql.service
#After=memcached.service
#After=redis.service
[Service]
<dependency>
<groupId>be.maximvdw</groupId>
<artifactId>MVdWPlaceholderAPI</artifactId>
<version>2.5.3-SNAPSHOT</version>
</dependency>
<repository>
<id>KingTux</id>
<url>http://repo.kingtux.me/repository/maven-public/</url>
</repository>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<executions>
<!-- Replacing default-compile as it is treated specially by maven -->
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
public class WaterWorldGen extends ChunkGenerator {
private NoiseGenerator generator;
private NoiseGenerator getGenerator(World world) {
if (generator == null) {
generator = new SimplexNoiseGenerator(world);
}
return generator;
}
@wyatt-herkamp
wyatt-herkamp / MimeTypes.java
Created December 17, 2018 15:48
An Enum of some common MimeTypes feel free to use.
public enum MimeTypes {
TEXT("text/plain"),
HTML("text/html"),
CSS("text/css"),
JPEG("image/jpeg"),
PNG("image/png"),
GIF("image/gif"),
BMP("image/bmp"),
WEBP("image/webp"),
@wyatt-herkamp
wyatt-herkamp / TheCodeOfAMadMan.java
Last active March 15, 2020 21:26
This is my code I came up with the other day. Please dont ask why?
package me.kingtux.other;
import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;