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 | |
export type Encoding = "i8" | "u8" | "i16" | "u16" | "i32" | "u32" | "f32" | "f64" | |
-- Constants | |
-- Variables | |
-- References |
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 |
NewerOlder