Skip to content

Instantly share code, notes, and snippets.

replaces:
plants:
replaces:
'LONG_GRASS:*':
DEAD_BUSH: 1
'YELLOW_FLOWER':
AIR: 1
'RED_ROSE:*':
AIR: 1
'DOUBLE_PLANT:*':
#!/bin/bash
while [[ true ]]; do
echo ಠ_ಠ
done

Keybase proof

I hereby claim:

  • I am drXor on github.
  • I am drxor (https://keybase.io/drxor) on keybase.
  • I have a public key whose fingerprint is 8651 EE6E 9813 73B2 E9F3 6390 152C E626 A70C C08C

To claim this, I am signing this object:

local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
local user_host='%{$terminfo[bold]$fg[green]%}%n@%M%{$reset_color%}'
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
local git_branch='$(git_prompt_info)%{$reset_color%}'
if [ $USER = 'root' ]; then
local prompt_char='%{$terminfo[bold]$fg[red]%}#'
else
public static List<Location> sphere(Location l, double radius){
return sphere(l, radius, 64);
}
public static List<Location> sphere(Location l, double radius, int iterations){
List<Location> list = new ArrayList<>();
for(int i = 0; i < iterations; i++){
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class DestroyInt {
public static void main(String[] args) throws Throwable {
/*
* v - Vector to rotate
* e - unit Vector about which to rotate
* th - angle in radians
*/
private static Vector rotate(Vector v, Vector e, double th){
double cos = Math.cos(th);
String nameSpace = Bukkit.getServer.getClass().getPackage().getName();
nameSpace = nameSpace.substring(nameSpace.lastIndexOf("."))
try {
Field f = Class.forName(nameSpace + "net.minecraft.server." + nameSpace + ".MinecraftServer").getDeclaredField("p");
Method m = Bukkit.getServer().getClass().getMethod("getServer", null);
f.setAccessible(true);
f.set(m.invoke(Bukkit.getServer(), null), yourObject);
}
Hello, world
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Main.main(Main.java:38)
Caused by: java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "com/xorinc/foo/Foo"
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.lang.reflect.Method;
import com.xorinc.foo.Foo;