Skip to content

Instantly share code, notes, and snippets.

View BoBkiNN's full-sized avatar
🐇

BoBkiNN_ BoBkiNN

🐇
  • Kazakhstan
  • 12:22 (UTC +05:00)
View GitHub Profile
@BoBkiNN
BoBkiNN / bdstudio_decode.py
Created May 27, 2024 14:12
Python script to decode BDStudio project file to JSON. BDStudio: https://eszesbalint.github.io/bdstudio
import gzip, argparse, json, base64, os
from io import TextIOWrapper
from typing import Any
PRETTY_INDENT = 2
def main():
parser = argparse.ArgumentParser(
prog='bdstudio_decode.py',
description='Decode BDStudio (https://eszesbalint.github.io/bdstudio) project to JSON',
@BoBkiNN
BoBkiNN / OrderedHashMapWrapper.java
Created March 22, 2024 16:05
LinkedHashMap wrapper that provides additional methods controlling position of element in a map.
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
public class OrderedHashMapWrapper<K, V> implements Map<K, V> {
private final LinkedHashMap<K, V> map;
@BoBkiNN
BoBkiNN / OrderedMap.java
Last active March 22, 2024 15:43
Surely fastest and best implementation of Map (no)
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.*;
@SuppressWarnings("SuspiciousMethodCalls")
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
Subject: [PATCH] disable annotation processor refmap checking
---
Index: src/ap/java/org/spongepowered/tools/obfuscation/AnnotatedMixinElementHandlerInjector.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/ap/java/org/spongepowered/tools/obfuscation/AnnotatedMixinElementHandlerInjector.java b/src/ap/java/org/spongepowered/tools/obfuscation/AnnotatedMixinElementHandlerInjector.java
--- a/src/ap/java/org/spongepowered/tools/obfuscation/AnnotatedMixinElementHandlerInjector.java (revision 155314e6e91465dad727e621a569906a410cd6f4)
+++ b/src/ap/java/org/spongepowered/tools/obfuscation/AnnotatedMixinElementHandlerInjector.java (date 1689688058112)
@BoBkiNN
BoBkiNN / versioning.md
Last active March 27, 2024 11:08
My versioning format

Version format that i use

<major>.<minor>.<build>[-platform]

  • [-platform] is platform name, (Fabric, Forge etc, or nothing)

Examples

  • 1.1.33 version 1.1, build 33
@BoBkiNN
BoBkiNN / ColorFixer.java
Created March 22, 2023 15:35
Color fixer class for console color fixing in ignite launcher`s TerminalConsoleAppender
/*
* The MIT License (MIT)
*
* Copyright (c) 2017 Minecrell <https://github.com/Minecrell>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is