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
--!strict | |
--!native | |
-- Services | |
-- Packages | |
-- Modules | |
-- Types | |
type RectangleImpl = { | |
__index: RectangleImpl, | |
__tostring: (self: Rectangle) -> string, | |
__eq: (self: Rectangle, other: Rectangle) -> boolean, |
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
--!nocheck | |
export type Profiler = { | |
start: (label: string) -> (), | |
stop: (t: number?) -> (), | |
} | |
export type BenchFunction<Parameter> = ( | |
profiler: Profiler, | |
parameter: Parameter | |
) -> () | |
export type BenchModule<Parameter> = { |
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
#!/bin/sh | |
# make a temp file | |
lsp_results=$(mktemp) | |
set +e | |
luau-lsp analyze "src" 2> "$lsp_results" #obvs swap this out to your actual lsp call | |
set -e | |
# iterate through the results |
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
--!strict | |
-- NEEDS TO BE RUN IN PLUGIN OR COMMAND LINE | |
--!strict | |
local STEP = 0.005 | |
local quadTemplate = game:GetService("ServerStorage"):WaitForChild("Quad") :: MeshPart | |
-- Function to get surface CFrame and Vector2 size | |
function getSurfaceCFrameAndSize(normalId: Enum.NormalId, cframe: CFrame, size: Vector3): (CFrame, Vector2) |
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
-- moved to https://github.com/nightcycle/editable-clothing-util | |
return {} |
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
; General Constants | |
SCREEN_CENTER_X_OFFSET := 950 ; x screen px coordinate for center of screen | |
SCREEN_CENTER_Y_OFFSET := 550 ; y screen px coordinate for center of screen | |
MIN_INPUT_DELAY_MS := 80 ; the number of milliseconds to wait after pressing enter to input a value into the menu | |
MIN_COMMAND_DELAY_MS := 250 ; the number of milliseconds to wait after copying / pasting / deleting / changing an in-world item | |
MENU_OPEN_DELAY_MS := 400 ; how long to wait for the menu to finish opening | |
MENU_CLOSE_DELAY_MS := 400 ; how long to wait for the menu to finish opening |
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
#!/bin/bash | |
myth_name="$1" | |
codegen_path="Codegen/Tags.cs" | |
codegen_contents=$(<$codegen_path) # the contents of the codegen script | |
# Regular expression to match lines containing "public static readonly string". | |
codegen_regex="public const string[[:space:]]+[[:alnum:]_]+[[:space:]]*=[[:space:]]*\"([^\"]+)\";" | |
# Array to hold the extracted string values. | |
declare -a tags_array |
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
--!nocheck | |
export type BenchmarkProfiler = { | |
Begin: (label: string) -> (), | |
End: () -> (), | |
} |
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
--!strict | |
-- Run this in command line after you import the meshes | |
-- Services | |
-- Packages | |
-- Modules | |
-- Types | |
-- Constants | |
local SEPARATION = 1 | |
local MAX_X_OFFSET = 50 | |
-- Variables |
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
--!strict | |
--[[ | |
MIT License | |
Copyright (c) 2021 EgoMoose + 2023 Nightcycle | |
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 |
NewerOlder