This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
JSON literal verification in TypeScript type system (version 3.1 for workgroups) | |
now powerd by tail recursion (you can blame @ackwell for telling me to and | |
@s5bug for doing it) | |
*/ | |
type HEX_CHARS = | |
| "0" | |
| "1" | |
| "2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// packwiz-generator - make a multimc instance zip for packwiz | |
// node index.js <URL to pack.toml> | |
// (c) notnite 2023, MIT license | |
const fs = require("fs"); | |
const AdmZip = require("adm-zip"); | |
const TOML = require("@iarna/toml"); | |
const packUrl = process.argv[2]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const https = require("https"); | |
function ivmWrap(sandbox, name, func) { | |
const ivm = require("isolated-vm"); | |
const sandboxContext = sandbox.getContext(); | |
const sandboxGlobal = sandboxContext.global; | |
const sandboxIsolate = sandbox.getIsolate(); | |
sandboxGlobal.setSync("_notnet_ivm", ivm); | |
sandboxGlobal.setSync("_notnet_" + name, new ivm.Reference(func)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Blender addon to make my life easier developing Xande.TestPlugin | |
import bpy | |
import os | |
# ===== Helper functions | |
def get_overlay() -> bpy.types.View3DOverlay: | |
for area in bpy.context.screen.areas: | |
if area.type == "VIEW_3D": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using Dalamud.Data; | |
using Dalamud.Game; | |
using FFXIVClientStructs.Havok; | |
namespace Toolkitty.Utils; | |
// shoutouts aers, winter, perch, couldn't have done it without you besties |