Skip to content

Instantly share code, notes, and snippets.

View gravitylow's full-sized avatar

Adam Fendley gravitylow

View GitHub Profile
// Not production code yet. Still experimental and needs a lot of work.
package net.gravitydevelopment.anticheat.util;
import net.gravitydevelopment.anticheat.AntiCheat;
import org.bukkit.Server;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
@gravitylow
gravitylow / gist:1f60b06236bab3acd8ff
Created July 12, 2014 17:57
ten.java repositories
Gater12-t3
Lolmewn-t2
zeusallmighty11-t1
zeusallmighty11-t3
Assult-t2
MylesIsCool-t2
DevRoMc-t3
ase34-t3
evilmidget38-t3
Ribesg-t2
@gravitylow
gravitylow / tjgource.py
Last active August 29, 2015 14:03
Ten.Java Gource Creator
# I'm not a python developer
import json
import urllib
import urllib2
from subprocess import call
url = "https://tenjava.com/api/participants?repos=1";
devnull = open('/dev/null', 'w')
1405123200|07/12/14 12:00am UTC: Contest begins with Timeslot 1
1405155600|07/12/14 9:00am UTC: Timeslot 2 begins
1405159200|07/12/14 10:00am UTC: Timeslot 1 ends
1405173600|07/12/14 2:00pm UTC: Timeslot 3 begins
1405191600|07/12/14 7:00pm UTC: Timeslot 2 ends
1405209600|07/13/14 12:00am UTC: Contest ends with Timeslot 3
@gravitylow
gravitylow / gist:66f1d7a0feb0f5767d7a
Created July 13, 2014 00:52
Ten.Java Gource Combined
1404077692|Michael Torres|A|/mamifsidtect-t3/README.md
1404422933|ten.java Plugin Contest|A|/devromc-t3/.gitignore
1404422933|ten.java Plugin Contest|A|/devromc-t3/pom.xml
1404422933|ten.java Plugin Contest|A|/devromc-t3/README.md
1404422933|ten.java Plugin Contest|A|/devromc-t3/src/main/java/com/tenjava/entries/DevRoMc/t3/TenJava.java
1404422933|ten.java Plugin Contest|A|/devromc-t3/src/main/resources/plugin.yml
1404422984|ten.java Plugin Contest|A|/slipcor-t2/.gitignore
1404422984|ten.java Plugin Contest|A|/slipcor-t2/pom.xml
1404422984|ten.java Plugin Contest|A|/slipcor-t2/README.md
1404422984|ten.java Plugin Contest|A|/slipcor-t2/src/main/java/com/tenjava/entries/slipcor/t2/TenJava.java
@gravitylow
gravitylow / keybase.md
Created October 1, 2014 04:24
keybase.md

Keybase proof

I hereby claim:

  • I am gravitylow on github.
  • I am gravity (https://keybase.io/gravity) on keybase.
  • I have a public key whose fingerprint is D2A0 85FC F4E2 039E 5BB3 EB76 0222 0DAC 94B1 66E2

To claim this, I am signing this object:

@gravitylow
gravitylow / cnu.geojson
Last active August 29, 2015 14:10
DiningBuddy GeoJSON file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gravitylow
gravitylow / lang.yml
Created March 1, 2013 22:26
AntiCheat: English Lang.yml
# AntiCheat language file
# Please report any bugs: http://dev.bukkit.org/server-mods/anticheat/
alert:
- '&player has just entered the &level hack level.'
- '&player''s last failed check was: &check.'
- 'Type ''/anticheat report &player'' for more information.'
warning:
player_warning:
- '[AntiCheat] Hacking is not permitted.'
- '[AntiCheat] If you continue to hack, action will be taken.'
import net.minecraft.server.v1_4_R1.CrashReport;
import net.minecraft.server.v1_4_R1.MinecraftServer;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.bukkit.Bukkit;
import org.bukkit.craftbukkit.v1_4_R1.CraftServer;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginLogger;
import org.bukkit.plugin.java.JavaPlugin;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
@gravitylow
gravitylow / BlockLocation
Created May 1, 2013 01:23
BlockLocation barebones
public class BlockLocation {
private double x;
private double y;
private double z;
public BlockLocation(Block block) {
x = block.getLocation().getX();
y = block.getLocation().getY();
z = block.getLocation().getZ();