Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am AgentK20 on github.
  • I am agentk (https://keybase.io/agentk) on keybase.
  • I have a public key whose fingerprint is 3048 BDB8 7B68 D2FE 9468 79F6 06CC 7C96 6554 2A54

To claim this, I am signing this object:

@AgentK20
AgentK20 / MeeclesMath.java
Last active August 29, 2015 14:08
He wanted to calculate the modulo of some numbers.
package net.hypixel;
import java.math.BigInteger;
import java.util.ArrayList;
public class MeeclesMath {
public static BigInteger starting = BigInteger.valueOf(349870850435529083L);
public static void main(String[] args) {
int cores = Runtime.getRuntime().availableProcessors();
@AgentK20
AgentK20 / RegexSpeedTest.java
Created October 10, 2014 09:41
Speed test for conversion of UUID (in String form) with dashes to no dashes
package net.hypixel;
public class RegexSpeedTest {
public static void main(String[] args) {
String s = "f59fde79-1ab0-499a-b9c3-fbe400e6fca3";
long start = System.currentTimeMillis();
for(int i=0; i<100_000; i++) {
regex(s);
}
long end = System.currentTimeMillis();
@AgentK20
AgentK20 / converter.php
Created August 13, 2012 22:36
Citizens 1.x to 2.x converter
<?php
function array_merge_recursive_distinct () {
$arrays = func_get_args();
$base = array_shift($arrays);
if(!is_array($base)) $base = empty($base) ? array() : array($base);
foreach($arrays as $append) {
if(!is_array($append)) $append = array($append);
foreach($append as $key => $value) {
if(!array_key_exists($key, $base) and !is_numeric($key)) {
$base[$key] = $append[$key];
@AgentK20
AgentK20 / README
Created April 2, 2012 19:19
Readme for Questers
===== Questers - Questing for Citizens2 =====
By aPunch
Supports:
-Minecraft Beta 1.2.4
-CraftBukkit 2126
-PermissionsBukkit
-bPermissions
-PermissionsEx
-iConomy 4, 5, & 6