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 jmorse; | |
import java.io.*; | |
import java.util.*; | |
import javax.sound.sampled.*; | |
public class Morse { | |
private static final int DOT = 200, DASH = DOT * 3, FREQ = 800; | |
private static String[] morse = {".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", "--", "-.", "---", ".--.", "--.-", ".-.", "...", "-", "..-", "...-", ".--", "-..-", "-.--", "--.."}; |
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.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.net.Socket; | |
public class Email { | |
private Provider provider; | |
private String owner; | |
private String password; |
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 org.bukkit.*; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; | |
import org.bukkit.event.player.PlayerInteractEvent; | |
import org.bukkit.plugin.java.JavaPlugin; | |
public class BulkBlockTest extends JavaPlugin implements Listener { | |
@Override | |
public void onEnable() { |
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 org.bukkit.command.Command; | |
import org.bukkit.command.CommandSender; | |
import org.bukkit.entity.Player; | |
import org.bukkit.plugin.java.JavaPlugin; | |
public class Crasher extends JavaPlugin { | |
@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
package net.sf.jbl.util; | |
import java.util.Arrays; | |
/** | |
* A one-size-fit-all IO stream | |
*/ | |
public class ByteStream { | |
protected byte[] out; |
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.sf.jbl.introspection; | |
import net.sf.jbl.util.ByteStream; | |
public class CPool implements Opcode { | |
Constant[] items; | |
int threshold; | |
short index = 0; | |
ByteStream vec; |
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
abstract class Lambda<T> { | |
T val; | |
public Lambda(Object... args) { | |
val = go(args); | |
} | |
protected abstract T go(Object... args); | |
public T get() { |
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 org.surgedev.legacy; | |
import net.minecraft.server.Entity; | |
import org.bukkit.Bukkit; | |
import org.bukkit.craftbukkit.CraftServer; | |
import org.bukkit.craftbukkit.entity.CraftEntity; | |
import org.bukkit.craftbukkit.entity.CraftItem; | |
import org.bukkit.event.Event; | |
import org.bukkit.event.block.BlockBreakEvent; | |
import org.bukkit.event.block.BlockIgniteEvent; |
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 org.surgedev.legacy; | |
import org.bukkit.*; | |
import org.bukkit.block.*; | |
import org.bukkit.craftbukkit.CraftServer; | |
import org.bukkit.craftbukkit.CraftWorld; | |
import org.bukkit.craftbukkit.entity.CraftPlayer; | |
import org.bukkit.enchantments.Enchantment; | |
import org.bukkit.inventory.ItemStack; | |
import org.bukkit.inventory.meta.ItemMeta; |
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
/** | |
* A random number generator based on the simple and fast xor-shift pseudo | |
* random number generator (RNG) specified in: | |
* Marsaglia, George. (2003). Xorshift RNGs. | |
* http://www.jstatsoft.org/v08/i14/xorshift.pdf | |
* Translated from: | |
* http://www.codeproject.com/Articles/9187/A-fast-equivalent-for-System-Random. | |
*/ | |
@SuppressWarnings("SuspiciousNameCombination") | |
public class Random extends java.util.Random { |