Skip to content

Instantly share code, notes, and snippets.

View EvanHsieh0415's full-sized avatar
💻
Coding

Mango Jelly Pudding EvanHsieh0415

💻
Coding
View GitHub Profile
// KubeJS 5 / 1.18.x
const $CreativeTabRegistry = java("dev.architectury.registry.CreativeTabRegistry");
$CreativeTabRegistry.create(
"test:group",
() => Item.of("minecraft:apple")
);
onEvent("item.registry", (event) => {
@EvanHsieh0415
EvanHsieh0415 / MMath.js
Last active August 21, 2023 07:44
[JS] Simple Math Functions (without class)
const MMath = {
/**
* Return a random integer N such that `a <= N <= b`.
* @param {Number} a
* @param {Number} b
* @returns {Number}
*/
randint: function (a, b) {
const min = b != undefined ? a : 0;
const range = len => Array.from({ length: len }, (_, i) => i + 1)
const len = array => array.length
const map = Array.prototype.map
const filter = Array.prototype.filter
const reduce = Array.prototype.reduce
String.prototype.join = function(array) { return array.join(this) }
@EvanHsieh0415
EvanHsieh0415 / CreateStyleResourcePack.md
Created April 6, 2023 11:52
Create Style Resource Pack

Create - Data Pack Recipes Docs

Mod Loader Conditions

Forge

{
  "conditions": [
 {
@EvanHsieh0415
EvanHsieh0415 / good_articles_collection.md
Last active March 19, 2023 14:07
Good Articles Collection

Good Articles Collection


"Python 的 staticmethod 與 classmethod" - 莊子弘

Tags: python, decorator, class, OOP
https://ji3g4zo6qi6.medium.com/5d36df9f6ad5

"[Python] *args 與 **kwargs 使用方式" - ChunJen Wang

Tags: python, args, kwargs, unpack

Interesting stuff

Github

Repo

Itch.io

Games

@EvanHsieh0415
EvanHsieh0415 / ScummyMods.md
Last active May 31, 2022 17:13 — forked from FxMorin/ScummyMods.md
像模組包一樣做的模組卑鄙行為

簡介

讓我先澄清一下,以下內容並不完全適用於Debugify,但他們可以作為一個很好的例子來說明以下所概述的令人髮指的行為。因此,有關的mods將被統稱為"垃圾mods"。

虛假修改是指未經原作者許可,合併或直接複製外國代碼基礎的修改。他們通常表示要"替換"或"包括"原作,如果有任何提及的話。 開發一個模組並不容易。許多模組創建者為他們的創作犧牲了大量的個人時間和資源,基本上是免費的。Curseforge為他們所付出的時間提供了象徵性的補償,但這通常是微不足道的,只是一個不錯的獎勵。

問題

大部分的原始項目仍在開發中。由於Scummy Mods背後的創造者通常不理解他們複製的代碼,他們缺乏必要的知識來消除任何開發項目中不可避免地出現的錯誤。因此,剩下的唯一選擇就是等待原作者更新他們的作品。正是由於這個原因,在大多數情況下,單一的代碼副本不是唯一的。

在原作者方面的多個更新週期之後,接著是Scummy Mod作者方面的"更新",許多作者停止了對他們項目的工作,使代碼處於未完善的狀態,並錯過了任何潛在的支持。

Hi

I am Mango, I like Mango