Skip to content

Instantly share code, notes, and snippets.

View codeHusky's full-sized avatar
🚭

Loki codeHusky

🚭
View GitHub Profile
@codeHusky
codeHusky / oembed-patcher.php
Created July 20, 2020 04:22
WP Plugin that removes useless author info from WordPress Page embed data.
<?php
/**
* Plugin Name: oEmbed Patcher
* Description: Removes useless metadata from WordPress oEmbeds
* Version: 1.0.0
* Author: Loki Rautio AKA codeHusky
*/
// Be sure to enclose this in a folder of the same name as the file (minus .php).
// e.g. /wp-content/plugins/oembed-patcher/oembed-patcher.php
/*
* SocketClient.cpp
*
* Created on: Feb 20, 2018
* Author: Programming
*/
#include "SocketClient.h"
#include <Robot.h>
#include <WPILib.h>
C:\Users\Loki\Documents\SpongePowered\Lantern\Lantern>gradlew genIntelliJRunConfigurations
> Task :test-server:genIntelliJRunConfigurations FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test-server:genIntelliJRunConfigurations'.
> Unable to find the RunManager node, please try to regenerate the intellij project files to resolve this issue.
* Try:
Loaded: "io.netty:netty-all:4.1.24.Final"
Loaded: "com.typesafe:config:1.3.1"
Loaded: "org.apache.logging.log4j:log4j-core:2.11.0"
Loaded: "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.0"
Loaded: "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.0"
Loaded: "org.apache.logging.log4j:log4j-iostreams:2.11.0"
Loaded: "org.yaml:snakeyaml:1.18"
Loaded: "org.mariadb.jdbc:mariadb-java-client:2.2.3"
Loaded: "net.java.dev.jna:jna:4.5.2"
Loaded: "org.slf4j:slf4j-api:1.8.0-alpha2"
gcc4-armv6-alpine-linux-muslgnueabihf-ld: arch/arm/mach-msm/built-in.o: in function `LGF_ScreenShot':
/home/pmos/build/src/android_kernel_lg_envt2-9e51b682f41702a682ba390250af35e8d5fc9208/arch/arm/mach-msm/lge/lg_diag_screen_shot.c:186: undefined reference to `diagpkt_alloc'
gcc4-armv6-alpine-linux-muslgnueabihf-ld: /home/pmos/build/src/android_kernel_lg_envt2-9e51b682f41702a682ba390250af35e8d5fc9208/arch/arm/mach-msm/lge/lg_diag_screen_shot.c:225: undefined reference to `diagpkt_alloc'
gcc4-armv6-alpine-linux-muslgnueabihf-ld: /home/pmos/build/src/android_kernel_lg_envt2-9e51b682f41702a682ba390250af35e8d5fc9208/arch/arm/mach-msm/lge/lg_diag_screen_shot.c:274: undefined reference to `diagpkt_alloc'
gcc4-armv6-alpine-linux-muslgnueabihf-ld: /home/pmos/build/src/android_kernel_lg_envt2-9e51b682f41702a682ba390250af35e8d5fc9208/arch/arm/mach-msm/lge/lg_diag_screen_shot.c:296: undefined reference to `diagpkt_alloc'
gcc4-armv6-alpine-linux-muslgnueabihf-ld: arch/arm/mach-msm/built-in.o: in function `LGF_TestMode':
@codeHusky
codeHusky / example huskyui 0.5.0.java
Created January 22, 2018 01:08
example impl of hotbar items
RunnableAction testAction = new RunnableAction(registry, ActionType.NONE,"");
testAction.setRunnable(context -> {
StateContainer container = new StateContainer();
Page testPage = Page.builder()
.setTitle(Text.of("WOAH"))
.build("testpage");
container.setInitialState(testPage);
container.launchFor(context.getObserver());
});
ActionableElement testElement = new ActionableElement(
@codeHusky
codeHusky / HuskyUI v0.5.0 example.java
Last active December 27, 2017 16:14
Working example
StateContainer container = new StateContainer();
container.addState(
Page.builder()
.setUpdatable(true)
.setUpdater(page -> {
int count = 0;
for(Inventory slot: page.getPageView().slots()){
if(!slot.peek().isPresent() && count == page.getTicks()%page.getPageView().capacity()){
slot.set(ItemStack.of(ItemTypes.STAINED_GLASS_PANE,count));
@codeHusky
codeHusky / cover.css
Last active September 7, 2017 03:22
cx
/*
* Globals
*/
/* Links */
a,
a:focus,
a:hover {
color: #fff;
}
var sio = require("socket.io");
var io = sio(1000);
console.log("Listening on port 1000");
io.on("connection", function(socket){
console.log("Connection");
socket.on("getUserInfo", function(userId) {
Chat.getUserInfo(socket, userId);
});
socket.on("fetchRoom", function(rid){
Error:(68, 17) java: cannot find symbol
symbol: method setDefaultOptions(ninja.leaping.configurate.ConfigurationOptions)
location: class ninja.leaping.configurate.hocon.HoconConfigurationLoader.Builder