Skip to content

Instantly share code, notes, and snippets.

View AL1L's full-sized avatar
🌟
Making cool things

Allen Lantz AL1L

🌟
Making cool things
View GitHub Profile
@AL1L
AL1L / MathhulkAPI.java
Last active April 4, 2017 01:38
A java class to hook into the theartex.net API
package mathhulk;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.Reader;
import java.net.HttpURLConnection;
import java.net.URL;
package me.diamonddev.craftoblo.menus;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
package me.diamonddev.craftoblo.menus;
import com.coalesce.gui.PlayerGui;
import com.coalesce.gui.ItemBuilder;
import me.diamonddev.craftoblo.Craftoblo;
import me.diamonddev.craftoblo.abilitys.AbilityObject;
import me.diamonddev.craftoblo.camera.CameraManager;
import me.diamonddev.craftoblo.classes.ClassType;
import me.diamonddev.craftoblo.playerdata.DataManager;
import me.diamonddev.craftoblo.playerdata.PlayerData;
package me.diamonddev.craftoblo.classes;
import lombok.Getter;
import me.diamonddev.craftoblo.abilitys.AbilityObject;
import com.coalesce.gui.ItemBuilder;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.inventory.ItemFlag;
import org.bukkit.inventory.ItemStack;
package me.diamonddev.craftoblo.animation;
import me.diamonddev.craftoblo.Craftoblo;
import org.bukkit.entity.ArmorStand;
import org.bukkit.scheduler.BukkitRunnable;
import java.util.ArrayList;
import java.util.List;
public class AnimationPlayer {
package com.al1l.d3scrape;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import com.mashape.unirest.request.GetRequest;
import me.diamonddev.craftoblo.items.ItemQuality;
import org.json.JSONArray;
import org.json.JSONObject;
<?php
$hook = new DiscordWebhook($hook_url);
$hook->send('```php\n// Some php code\n```');
/*!
=========================================================
* Argon Design System - v1.0.1
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-design-system
* Copyright 2018 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://github.com/creativetimofficial/argon-design-system/blob/master/LICENSE.md)
@AL1L
AL1L / sort.js
Created March 8, 2019 17:15
Sorts files based on type (which is based on the file extension). Edit the `toSort`, `sort`, `types` and `ext` vars to change how you want it to be sorted. As I find more file extensions to add ill add them, also comment what you think should be added
const fs = require('fs');
const path = require('path');
function mkDirByPathSync(targetDir, { isRelativeToScript = false } = {}) {
const sep = path.sep;
const initDir = path.isAbsolute(targetDir) ? sep : '';
const baseDir = isRelativeToScript ? __dirname : '.';
return targetDir.split(sep).reduce((parentDir, childDir) => {
const curDir = path.resolve(baseDir, parentDir, childDir);
<?php
// Allen, StackDoubleFlow
$tokens = array("mySecret", "myOtherSecret");
$blacklist_names = array("upload.php", ".htaccess");
$sharexdir = "./"; // File directory
$lengthofstring = 5; // Length of file name
// Random file name generation
function random_string($length) {