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
### Keybase proof | |
I hereby claim: | |
* I am unon1100 on github. | |
* I am unon1100 (https://keybase.io/unon1100) on keybase. | |
* I have a public key whose fingerprint is 32B9 F13D C3B0 9018 4ADA F7E0 35E6 612C 78E9 D1E1 | |
To claim this, I am signing this object: |
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
//JAVA 8 | |
import net.md_5.bungee.api.ProxyServer; | |
import net.md_5.bungee.api.scheduler.ScheduledTask; | |
import java.util.concurrent.TimeUnit; | |
@FunctionalInterface | |
public interface ProxyRunnable extends Runnable{ | |
default ScheduledTask runAsync(){ |
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 javax.swing.*; | |
public class Tests{ | |
public static void main(String[] args){ | |
JFrame frame = new JFrame("mouse wheel test"); | |
frame.setBounds(30, 30, 300, 300); | |
JLabel status = new JLabel("nothing"); | |
frame.add(status); | |
status.setLocation(50, 50); | |
frame.addMouseWheelListener(e -> { |
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 java.text.NumberFormat; | |
import java.util.Locale; | |
public class Problem{ | |
static int test = 0; | |
static boolean complete = false; | |
public static void main(String[] args){ | |
new Thread(){ | |
@Override |
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 java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; | |
import java.util.function.Function; | |
import java.util.function.Predicate; | |
import java.util.stream.Collectors; | |
public class Tests{ | |
static Random rand = new Random(); |
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.mcpz.splatoon.weapons; | |
import net.mcpz.pzcore.api.inventory.InteractiveItem; | |
import net.mcpz.splatoon.Splatoon; | |
import net.mcpz.splatoon.utils.TeamColor; | |
import org.bukkit.Material; | |
import org.bukkit.entity.EnderPearl; | |
import org.bukkit.entity.Player; | |
import org.bukkit.entity.Projectile; | |
import org.bukkit.entity.Snowball; |
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
dance: while(!person.isDancing()) { | |
break dance; | |
} | |
person.dance(); |
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 me.dean; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
public class MainClass { | |
private static List<Byte> deck = new ArrayList<>(); | |
public static void main(String[] args) { |
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.deanveloper; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* @author Dean B <[email protected]> | |
*/ | |
public class Test { | |
public static void main(String[] args) { |
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
// the A in front of the file name is just to keep this on top in the gist lol | |
inline fun <reified T> testReified(obj: T) { | |
// None of these are possible in Java because of Type Erasure | |
if (obj is Int) { | |
println(5 + obj) | |
} else { | |
println(obj) | |
} | |
val x = 5 |
OlderNewer