Skip to content

Instantly share code, notes, and snippets.

View toverux's full-sized avatar

Morgan Touverey Quilling toverux

View GitHub Profile
@romanlex
romanlex / BundleManifestPlugin.js
Last active June 12, 2025 12:44
Bundle manifest.json to defined var with ManifestPlugin for update frontend app
const { sources } = require('webpack')
const { getCompilerHooks } = require('webpack-manifest-plugin')
const PLUGIN_NAME = 'BundleManifestPlugin'
/** @typedef {import("webpack").Compiler} Compiler */
/**
* @typedef {Object} Options
* @property {string} to
import time
print "..."
time.sleep(1)
print "..."
print "..."
print "..."
print "..."
time.sleep(1)
print "..."
@JavidPack
JavidPack / AnotherSimpleHarmonyTranspilerTutorial.md
Last active October 2, 2024 07:34
Another Simple Harmony Transpiler Tutorial

About

This guide is yet another Harmony Transpiler Tutorial. This guide will use Terraria as the target game and will touch lightly upon Labels, Extension Methods, and AccessTools. If you'd like, you can skip right to the bottom and see these sections directly. Read the guide from start to finish if you'd like to follow the thought process of developing this Transpiler.

Prerequisites

  • This guide assumes you have gone through the original tutorial.
  • dnSpy - We will use the compile functionality to help design our patch.
  • Familiarity with Terraria is NOT required

Goal

The goal that this guide will work toward is making the various bee related items in Terraria stronger. For those not familiar with Terraria, various items will spawn bees as weapons. If the player has the strongBees ability, bees will have a random chance of spawning as GiantBee instead. This patch will further augment the `stron

@hediet
hediet / main.md
Last active May 24, 2025 09:04
Proof that TypeScript's Type System is Turing Complete
type StringBool = "true"|"false";


interface AnyNumber { prev?: any, isZero: StringBool };
interface PositiveNumber { prev: any, isZero: "false" };

type IsZero<TNumber extends AnyNumber> = TNumber["isZero"];
type Next<TNumber extends AnyNumber> = { prev: TNumber, isZero: "false" };
type Prev<TNumber extends PositiveNumber> = TNumber["prev"];