Skip to content

Instantly share code, notes, and snippets.

View JayWood's full-sized avatar
:octocat:
Levelling up, one commit at a time.

JayWood

:octocat:
Levelling up, one commit at a time.
View GitHub Profile
@JayWood
JayWood / cpts.php
Last active March 13, 2016 00:48
Helper Class to allow drop in CPT/Taxonomy_Core integration
<?php
/**
* Loads CPTs and Taxonomies using a drop-in file method.
* Class MS_Cpts
*/
class MS_Cpts {
/**
* @var MS_Cpts
@JayWood
JayWood / broken_code.php
Last active January 11, 2016 16:00
broken-code
<?php
// First let's get the query_var
$cat = ! empty( get_query_var( 'cat' ) ) ? get_query_var( 'cat' ) : false;
if ( $cat ) :
$category_data = get_category( $cat );
// This is a shorthand ternary, to explain:
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.File;
import java.io.InputStream;
public class LangSetup {
private JavaPlugin plugin;
<?php
/**
* Plugin Name: Twitter Share Counts Tutorial
* Plugin URI: http://webdevstudios.com
* Version 0.1.0
* Author: JayWood
* Author URI: http://www.plugish.com
*/
249279667666817024
package com.plugish;
import org.bukkit.plugin.java.JavaPlugin;
/**
* Created by Jay on 12/6/2015.
*/
public class Test extends JavaPlugin {
@Override
[14:49:11 INFO]: Starting minecraft server version 1.8.8
[14:49:11 INFO]: Loading properties
[14:49:11 INFO]: Default game type: SURVIVAL
[14:49:11 INFO]: This server is running CraftBukkit version git-Spigot-db6de12-18fbb24 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
[14:49:11 INFO]: Debug logging is disabled
[14:49:11 INFO]: Server Ping Player Sample Count: 12
[14:49:11 INFO]: Using 4 threads for Netty based IO
[14:49:11 INFO]: Generating keypair
[14:49:11 INFO]: Starting Minecraft server on *:25565
[14:49:11 INFO]: Using default channel type
@JayWood
JayWood / gist:4d4da345b41721d44bd6
Last active December 6, 2015 19:23
maven-build-log
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T12:37:52-05:00)
Maven home: F:\GIT\WooMinecraft\EMBEDDED
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_71\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from EMBEDDED\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\Jay\.m2\settings.xml
[DEBUG] Using local repository at C:\Users\Jay\.m2\repository
[03:39:56 ERROR]: Could not load 'plugins\WooMinecraft-1.0.4-SNAPSHOT.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Cannot find main class `com.plugish.woominecraft.WooMinecraft'
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:42) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:289) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.<in
@JayWood
JayWood / page-home.php
Created November 16, 2015 01:14
Gridsby page-home.php array optimized
<?php
// First setup the default arguments
$args = array(
'post_type' => 'post',
'posts_per_page' => 20,
'order' => 'DESC',
'tax_query' =>
array(
array(