Skip to content

Instantly share code, notes, and snippets.

Avatar
👋

MiniDigger | Martin MiniDigger

👋
View GitHub Profile
View paperplace.js
// ==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 May 10, 2022
Spigot Build Data Links
View builddata.json
{
"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 Nov 26, 2019
My thelounge plugins and themes! (click here to view)
View thelounge.md
@MiniDigger
MiniDigger / Scratch.java
Created Oct 6, 2019
Upscale Resource packs
View Scratch.java
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;
View dumpa.java
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 Aug 15, 2018
UpdateBungeeLanguageProperties
View 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 Aug 11, 2018 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# 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:
View gist:efd80633b50b06f4677b4be5552b4aa8
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
View BlockStateProperties.java
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;
View conemuconfig.xml
<?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"/>