Skip to content

Instantly share code, notes, and snippets.

💻
Working on Code

willies952002 willies952002

💻
Working on Code
Block or report user

Report or block willies952002

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@willies952002
willies952002 / AsyncDbQueue.java
Created Jun 4, 2017 — forked from aikar/AsyncDbQueue.java
Empire Minecraft DB Wrapper - EmpireDb - Released as MIT
View AsyncDbQueue.java
package com.empireminecraft.systems.db;
import com.empireminecraft.util.Util;
import java.sql.SQLException;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.locks.Lock;
@willies952002
willies952002 / TaskChainedJavaPlugin.java
Last active Apr 2, 2017
Wrapper for Bukkit's JavaPlugin to include TaskChain methods - Requires TaskChain: https://taskchain.emc.gs
View TaskChainedJavaPlugin.java
/*
* Copyright (c) 2017 willies952002 <admin@domnian.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
View -
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building commands 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://ci.emc.gs/nexus/content/groups/aikar/com/destroystokyo/paper/paper-api/1.10-R0.1-SNAPSHOT/maven-metadata.xml
Downloading: https://repo.destroystokyo.com/repository/maven-public/com/destroystokyo/paper/paper-api/1.10-R0.1-SNAPSHOT/maven-metadata.xml
Downloading: http://ci.emc.gs/nexus/content/groups/aikar/com/destroystokyo/paper/paper-api/1.10-R0.1-SNAPSHOT/paper-api-1.10-R0.1-SNAPSHOT.pom
Downloading: https://repo.destroystokyo.com/repository/maven-public/com/destroystokyo/paper/paper-api/1.10-R0.1-SNAPSHOT/paper-api-1.10-R0.1-SNAPSHOT.pom
[WARNING] The POM for com.destroystokyo.paper:paper-api:jar:1.10-R0.1-SNAPSHOT is missing, no dependency information available
View -
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building commands 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.destroystokyo.paper:paper-api:jar:1.10-R0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.795 s
View -
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building commands 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.destroystokyo.paper:paper-api:jar:1.10-R0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.743 s
View git.diff
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 8a0e6a6..e47bfc0 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -6,11 +6,11 @@
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
- <module name="commands" />
+ <module name="command" />
View -
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 8a0e6a6..e47bfc0 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -6,11 +6,11 @@
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
- <module name="commands" />
+ <module name="command" />
View Caches.java
static final RemovalListener<Object, EmpireUser> USER_REMOVAL_LISTENER = notification -> {
final EmpireUser user = notification.getValue();
switch (notification.getCause()) {
case EXPIRED:
case SIZE:
if (user != null && user.getPlayer() != null && user.getPlayer().isOnline()) {
user.refreshCaches();
}
}
View DB.php
<?php
function DB($query, $args = NULL, $return = false) {
$stmt = DB::prepare($query);
if ($args !== NULL && !is_array($args) && func_num_args() == 2) {
//support DB(query,return)
$return = $args;
$args = array();
}
if (!is_null($args) && is_array($args)) {
@willies952002
willies952002 / btccheck.php
Last active Aug 13, 2016
BTC Exchange Rate Checker - A simple script that is used to check the current exchange rate of Bitcoins (BTC)
View btccheck.php
<?php
/*
* Copyright (c) 2016 William Surgeon (willies952002) <admin@domnian.com>
*
* MIT License:
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
You can’t perform that action at this time.