Skip to content

Instantly share code, notes, and snippets.

View rz7d's full-sized avatar

azure rz7d

  • Oita, Japan
  • 11:03 (UTC +09:00)
View GitHub Profile
@rz7d
rz7d / Fibonacci.java
Last active March 15, 2020 11:30
Fibonacci
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.RoundingMode;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
-Xms256M
-Xmx2048M
-XX:MetaspaceSize=256M
-XX:+UnlockExperimentalVMOptions
-XX:MaxTenuringThreshold=15
-XX:+UseG1GC
-XX:+UseGCOverheadLimit
-XX:+ExplicitGCInvokesConcurrent
-XX:+UseStringDeduplication
-Xverify:none
import * as fs from "fs";
type Descriptor = "class" | "method" | "field";
type ObfMap = {
d: Descriptor;
name: string;
obfName: string;
};
# Pypeliner for Python 3
#
# Usage
#
# [PROLOGUE]
# _ | <Value>
# <Value> | _
#
# [INTERMEDIATE OPERATIONS]
# (pipeline) \
@rz7d
rz7d / NoiseGen.java
Created October 1, 2019 01:13
Noise texture generator
/*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* Version 2, December 2004
*
* Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
*
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
@rz7d
rz7d / CopyUltimateTierAsVoid.java
Created May 31, 2019 18:37
copies resources of mekanism with renaming to "void" tier name.
/*
* Copyright (C) 2019 azure.
*
* "THE SUSHI-WARE LICENSE"
*
* <make.just.on@gmail.com> wrote this license.
*
* As long as you retain this notice you can do whatever you want
* with this stuff. If we meet some day, and you think this stuff
* is worth it, you can buy me a **sushi 🍣** in return.
@rz7d
rz7d / AutoSaturationAndBrightness.java
Created May 31, 2019 18:33
automatic generator for resources of Void Power mod
/*
* Copyright (C) 2019 azure.
*
* "THE SUSHI-WARE LICENSE"
*
* <make.just.on@gmail.com> wrote this license.
*
* As long as you retain this notice you can do whatever you want
* with this stuff. If we meet some day, and you think this stuff
* is worth it, you can buy me a **sushi 🍣** in return.
@rz7d
rz7d / assertgo.go
Created May 24, 2019 18:42
Fluent Assertions (No Supports)
package assertgo
/*
* Copyright (C) 2019 azure
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@rz7d
rz7d / Depends.java
Last active May 24, 2019 14:48
generate <dependency></dependency> tags from maven repository (pwd)
/*
* Copyright (C) 2019 azure.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
# HG changeset patch
# User azure <rz7@outlook.jp>
# Date 1555065807 -3600
# Fri Apr 12 11:43:27 2019 +0100
# Node ID bcf8f4f38fced14272d9984707427199b4c1981c
# Parent b67884871b5fff79c5ef3eb8ac74dd48d71ea9b1
Modifications for Minecraft
diff --git a/src/java.base/share/classes/java/net/URLClassLoader.java b/src/java.base/share/classes/java/net/URLClassLoader.java
--- a/src/java.base/share/classes/java/net/URLClassLoader.java