Skip to content

Instantly share code, notes, and snippets.

View MiniDigger's full-sized avatar
👋

MiniDigger | Martin MiniDigger

👋
View GitHub Profile
// ==UserScript==
// @name Paper r/place
// @namespace http://tampermonkey.net/
// @version 2
// @description try to take over the canvas!
// @author MiniDigger
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// ==/UserScript==
let url = "https://i.imgur.com/rsOWyax.png"
@MiniDigger
MiniDigger / builddata.json
Last active April 5, 2023 13:45
Spigot Build Data Links
{
"1.16.5": {
"classes": "https://hub.spigotmc.org/stash/projects/SPIGOT/repos/builddata/raw/mappings/bukkit-1.16.5-cl.csrg?at=80d35549ec67b87a0cdf0d897abbe826ba34ac27",
"members": "https://hub.spigotmc.org/stash/projects/SPIGOT/repos/builddata/raw/mappings/bukkit-1.16.5-members.csrg?at=80d35549ec67b87a0cdf0d897abbe826ba34ac27"
},
"1.16.4": {
"classes": "https://hub.spigotmc.org/stash/projects/SPIGOT/repos/builddata/raw/mappings/bukkit-1.16.4-cl.csrg?at=501ea060743c7bba4436878207e4f1232298efce",
"members": "https://hub.spigotmc.org/stash/projects/SPIGOT/repos/builddata/raw/mappings/bukkit-1.16.4-members.csrg?at=501ea060743c7bba4436878207e4f1232298efce"
},
"1.16.3": {
@MiniDigger
MiniDigger / thelounge.md
Last active March 27, 2023 06:59
My thelounge plugins and themes! (click here to view)
@MiniDigger
MiniDigger / Scratch.java
Created October 6, 2019 09:33
Upscale Resource packs
import java.awt.image.BufferedImage;
import java.awt.image.RescaleOp;
import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicInteger;
package me.minidigger.dumpa;
import java.io.File;
import java.io.FileOutputStream;
import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.IllegalClassFormatException;
import java.lang.instrument.Instrumentation;
import java.security.ProtectionDomain;
import java.util.Arrays;
import java.util.stream.Collectors;
@MiniDigger
MiniDigger / UpdateBungeeLanguageProperties
Last active August 15, 2018 19:10
UpdateBungeeLanguageProperties
import com.google.gson.Gson;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Properties;
@MiniDigger
MiniDigger / boxstarter.ps1
Last active June 17, 2023 00:52 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@MiniDigger
MiniDigger / gist:efd80633b50b06f4677b4be5552b4aa8
Created June 16, 2018 13:40 — forked from psayre23/gist:c30a821239f4818b0709
Runtime Complexity of Java Collections
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
gsrc/main/java/net/minecraft/state/properties/BlockStateProperties.java
package net.minecraft.state.properties;
import java.util.function.Predicate;
import javax.annotation.Nullable;
import net.minecraft.state.BooleanProperty;
import net.minecraft.state.DirectionProperty;
import net.minecraft.state.EnumProperty;
import net.minecraft.state.IntegerProperty;
@MiniDigger
MiniDigger / conemuconfig.xml
Created August 4, 2017 11:45
My conemu config
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2017-08-04 13:44:44" build="170730">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Shells::cmd}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>