repo stringclasses 350
values | file_path stringlengths 29 200 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.01M | tokens int64 2 598k |
|---|---|---|---|---|---|
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/ImmutableArrayConsistentHeightStateStressTest.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
local e = React.createElement
return function(target)... | 290 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/ImmutableArrayConsistentHeightStateUpdates.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
local e = React.createElement
local function Demo()
... | 386 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/ImmutableArrayConsistentHeightStateWithSpacing.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
local e = React.createElement
return function(target)... | 309 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/ImmutableArrayConsistentUDim2Binding.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
local e = React.createElement
return function(target)... | 331 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/ImmutableArrayConsistentUDim2State.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
local e = React.createElement
return function(target)... | 315 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/ImmutableArrayConsistentUDim2StateWithSpacing.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
local e = React.createElement
return function(target)... | 333 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/ImmutableArrayConsistentUDim2WithOffsetState.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
local e = React.createElement
return function(target)... | 315 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/ImmutableArrayConsistentUDim2WithOffsetStateAndSpacing.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
local e = React.createElement
return function(target)... | 333 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/ImmutableArrayConsistentWidthState.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
local e = React.createElement
return function(target)... | 297 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/ImmutableArrayGetterDimensionsBinding.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
local e = React.createElement
type Letter = {
text: ... | 477 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/ImmutableArrayGetterDimensionsState.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
local e = React.createElement
type Letter = {
text: ... | 454 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/MutableStateConsistentHeightState.story.luau | luau | .luau | local HttpService = game:GetService("HttpService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"])
loc... | 451 |
Kampfkarren/ultimate-list | Kampfkarren-ultimate-list-18113c9/stories/StyledScrollingFrame.story.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local StylingService = game:GetService("StylingService")
local React = require(ReplicatedStorage.Packages.React)
local ReactRoblox = require(ReplicatedStorage.DevPackages.ReactRoblox)
local UltimateList = require(ReplicatedStorage.Packages["ultimate-list"]... | 431 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/ReplicatedFirst/CakeClient.local.luau | luau | .luau | --!strict
-- CakeClient -- prediction bootstrap, camera, and the CameraDir feed.
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local UserInputService = game:GetService("UserInputService")
if not game:IsLoaded() the... | 1,361 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/ReplicatedFirst/CakeSim.luau | luau | .luau | --!strict
-- CakeSim -- locomotion for every player's CakeMan, run through BindToSimulation on
-- both sides. It must stay deterministic, because the step re-runs several times during
-- reconciliation: no wall clocks, no randomness, no instance creation, no effects. Keep
-- time with dt. The global time() is resim-saf... | 2,559 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/ReplicatedFirst/Smoothing.luau | luau | .luau | --!strict
local Smoothing = {}
-- Critically-damped spring toward `tgt`; `st` ~= time to arrive.
-- Returns (newPos, newVel); thread `vel` back in next call.
function Smoothing.damp(cur: Vector3, tgt: Vector3, vel: Vector3, st: number, dt: number): (Vector3, Vector3)
st = math.max(st, 1e-4)
local omega = 2 / st
loc... | 169 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/samples/cube/ReplicatedFirst/CubeClient.local.luau | luau | .luau | --!strict
-- CubeClient -- prediction bootstrap, camera, and the CameraDir feed.
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
if not game:IsLoaded() the... | 983 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/samples/cube/ReplicatedFirst/CubePresent.luau | luau | .luau | --!strict
-- CubePresent -- the visual layer.
--
-- Copy A: the authoritative part. Replicated, simulated, and locally invisible.
-- Copy B: a client-only, anchored clone. A picture. Never simulated; we set its CFrame.
local RunService = game:GetService("RunService")
local CollectionService = game:GetService("Collectio... | 1,323 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/samples/cube/ReplicatedFirst/CubeSim.luau | luau | .luau | --!strict
-- CubeSim -- the whole character. Runs through BindToSimulation on both machines.
--
-- The contract: the owner (the server for all cubes, a client for its own) reads live input
-- and writes intent as attributes. Every peer then drives the actuators from those
-- attributes, identically. Attributes written ... | 1,382 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/config.luau | luau | .luau | local config = {
seal_version = "0.8.0",
}
export type SealConfig = {
--- Script that `seal run` runs; usually the entrypoint to your codebase.
--- Defaults to `./src/main.luau`.
entry_path: string?,
--- Script that `seal test` runs; usually a test runner.
test_path: string?,
--- semver version of seal this pro... | 109 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/extra/csv/column.luau | luau | .luau | local column = {}
local str = require("@std/str")
local row = require("./row.luau")
type ColumnStruct = {
column_name: string,
values: { string },
}
type ColumnImpl = {
row: (self: CsvColumn, index: number) -> row.CsvRow,
display: (self: CsvColumn) -> string,
}
export type CsvColumn = setmetatable<C... | 367 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/extra/csv/init.luau | luau | .luau | local fs = require("@std/fs")
local str = require("@std/str")
local output = require("@std/io/output")
local types = require("@self/types")
export type Csv = types.Csv
local row = require("@self/row")
type CsvRow = row.CsvRow
local column = require("@self/column")
type CsvColumn = column.CsvColumn
--[=[
A simple, u... | 2,414 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/extra/csv/row.luau | luau | .luau | local str = require("@std/str")
type CsvRowStruct = { { [string]: string } }
type CsvRowImpl = {
values: (self: CsvRow) -> { string },
display: (self: CsvRow) -> string,
}
export type CsvRow = setmetatable<CsvRowStruct, {
__index: CsvRowImpl,
}>
local row = {}
local impl = {}
function impl.values(self: CsvRow):... | 505 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/extra/csv/select.luau | luau | .luau | local types = require("./types")
type Csv = types.Csv
type column_name = string
export type SelectQuery = {
with_columns: { column_name },
where: {
[column_name]: (value: string) -> boolean,
},
}
--[=[
Selects rows and columns of `c` that match the `SelectQuery`, returning a new `Csv`.
```luau
export type S... | 485 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/extra/csv/types.luau | luau | .luau | -- need a separate file to non-recursively share types
type column_name = string
export type Csv = {
column_names: { string },
column_map: {
[column_name]: number,
},
columns: {
[number]: {
column_name: string,
values: { string },
},
},
rows: {
[number]: { string },
},
}
return nil | 83 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/extra/tt.luau | luau | .luau | --[=[
A `table` extension library written in pure Luau!
Features common functions like `map`, `filter`, etc.
]=]
local tt = {}
--- check if you can iterate through table `t` normally (does it support __iter without blowing up?)
function tt.caniteratenormally(t: any): boolean
local tmeta = getmetatable(t)
-- stylu... | 2,383 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/interop/init.luau | luau | .luau | return {
mlua = require("@self/mlua"),
} | 13 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/interop/mlua.luau | luau | .luau | --[=[
Interop with seal's underlying mlua layer
]=]
local mlua = {}
--- Returns `true` if `n` is an mlua Integer, or `false` if it's an `mlua` Number
---
--- Note, this is important (and therefore annoying) because large integer numbers,
--- such as `1231231231234445` are internally represented as mlua `LuaNumber`s a... | 186 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/interop/standalone.luau | luau | .luau | --[=[
Load code from standalone versions of *seal*.
]=]
export type standalone = {
--[=[
Extracts, loads, and executes luau bytecode from the standalone seal executable at `path`.
This can be used to 'require' compiled standalone modules, except with no regular safety and no type safety...
... | 254 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/archive/_types.luau | luau | .luau | --[=[
Overrides for path safety and archive bomb limits.
The default limits are kinda low, be sure to increase them if you know
you're going to be extracting large files.
- **Max total size:** 4 GB
- **Max individual file size:** 500 MB
- **allow_unsafe_path_traversals:** false, obviously
... | 353 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/archive/ar.luau | luau | .luau | local _types = require("@self/_types")
export type ArchiveOptions = _types.ArchiveOptions
export type ArchiveFormat = _types.ArchiveFormat
--[=[
Read, write, and extract the Unix `ar` format used for static libraries and as the outer container for `.deb` packages.
ar is a single flat layer of entries with no ... | 498 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/archive/deb.luau | luau | .luau | local _types = require("@self/_types")
export type ArchiveOptions = _types.ArchiveOptions
export type ArchiveFormat = _types.ArchiveFormat
--[=[
Read, write, and extract Debian packages.
Internally, debs are just an `ar` archive wrapping `control` and `data` tarballs.
Like `ar`, the outer deb layer i... | 489 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/archive/entry.luau | luau | .luau | --[=[
Constructors of `ArchiveEntry` instances for `@std/archive` functions and `Archive` methods.
]=]
export type entry = {
--[=[
Create new entries (file/directory/symlink)
]=]
create: {
--[=[
Create a new file `ArchiveEntry` with default unix permissions and no modified ti... | 527 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/archive/sevenz.luau | luau | .luau | local _types = require("@self/_types")
export type ArchiveOptions = _types.ArchiveOptions
export type ArchiveFormat = _types.ArchiveFormat
--[=[
Read, write, and extract the 7z format.
7z (LZMA2) usually beats zip and tar.xz on compression ratio, at the cost of being slower
to compress and less universall... | 599 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/archive/tar.luau | luau | .luau | local _types = require("./_types")
--[=[
Read, write, and extract tar ("Tape Archive") archives, affectionally known as
tarballs, split by the compression codec applied to the tarball
("uncompressed" for none).
]=]
export type tar = {
--[=[
Unzip/Unball(is that a word?) gzip-compressed tarball... | 3,257 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/archive/zip.luau | luau | .luau | local _types = require("@self/_types")
--[=[
Read, write, and extract the most common archive type I know of,
the DEFLATE-based zip format.
## Usage
Example: extract new album to Music folder, fixing song paths.
```luau
const zip = require("@std/archive/zip")
const fs = require("@std/fs"... | 852 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/colors.luau | luau | .luau | return require("./io/colors") | 6 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/crypt/aes.luau | luau | .luau | export type aes = {
--- Generate an AES-256 key.
generatekey: () -> string,
--- Encrypt plaintext with an AES-256 key
encrypt: (plaintext: string, key: string) -> string,
--- Decrypt ciphertext with an AES-256 key.
decrypt: (ciphertext: string, key: string) -> string,
}
return {} :: aes | 81 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/crypt/hash.luau | luau | .luau | --[=[
Contains function sha2, which can be used to create an **unsalted** hash, returned as a buffer.
### Please use the `@std/crypt/password` library if you want to hash passwords (salted)
]=]
export type hash = {
--[=[
Hashes plaintext with the SHA2-256 algorithm, returns a buffer (of length 32) containing t... | 126 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/crypt/init.luau | luau | .luau | local crypt = {}
crypt.aes = require("@std/crypt/aes")
crypt.rsa = require("@std/crypt/rsa")
crypt.hash = require("@std/crypt/hash")
crypt.password = require("@std/crypt/password")
return crypt | 50 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/crypt/password.luau | luau | .luau |
--[=[
## This is the password handling lib.
Please use with caution.
]=]
export type password = {
--[=[
Hash a password with the `PBKDF2_HMAC_SHA256` algorithm, returns a `HashedPassword`
which you can later use to verify the password against a future
passwording attempt.
## Example:
```luau
... | 614 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/crypt/rsa.luau | luau | .luau | export type rsa = {
generatekeys: () -> RsaKeys,
encrypt: (plaintext: string, public_key: string) -> string,
decrypt: (ciphertext: string, private_key: string) -> string,
}
type RsaKeys = {
public: string,
private: string
}
return {} :: rsa | 70 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/datetime.luau | luau | .luau | return require("./time/datetime") | 7 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/env/init.luau | luau | .luau | --[=[
A stdlib to interact with the script's running environment.
]=]
export type env = {
--- a list of arguments passed to the program
args: { string },
--- your operating system
os: "Windows" | "Linux" | "Android" | "MacOS" | string,
--- your system architecture, most likely `"x86_64"`
arch: A... | 647 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/err.luau | luau | .luau | --- Simple library for managing `error` types from seal.
export type err = {
--[=[
Create an `error` with a custom error message. This allows you to return result-like unions that can be `typeof` checked.
## Usage
```luau
local err = require("@std/err")
local function canfa... | 426 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/fs/_types.luau | luau | .luau | -- common types that we don't want cyclic require errors on
export type TreeBuilder = {
--- The `DirectoryTree` being constructed by the `TreeBuilder`.
inner: DirectoryTree,
--- Add a file to the DirectoryTree by `name` with `content`
with_file: (self: TreeBuilder, name: string, content: string) -> Tre... | 2,781 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/fs/file.luau | luau | .luau | local common_types = require("./_types")
export type FileEntry = common_types.FileEntry
export type FileBuilder = common_types.FileBuilder
export type FileLib = setmetatable<{
--[=[
Create a `FileEntry` from `path`; errors if unable to create the `FileEntry` if a file is not found or permission was denied... | 1,019 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/fs/filesize.luau | luau | .luau | --[=[
Construct `FileSize` values from human-readable units rather than raw byte counts.
Fractional unit counts are accepted for all units larger than bytes — e.g. `filesize.gigabytes(1.2)` gives you 1.2 GB expressed as bytes.
`FileSize`s may be compared with all comparison operators, added, subtracted, m... | 290 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/fs/path.luau | luau | .luau | export type PathLib = {
--[=[
Joins path components together in a cross-platform-safe manner.
The default separator is `/`, except when dealing with absolute paths on Windows.
On Windows, pass `.\` as the first component to `path.join` to use `\` in relative paths.
## Usage
... | 1,015 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/init.luau | luau | .luau | --[=[
Of course *you'd* require the whole standard library at once...
]=]
local std = {
fs = require("@std/fs"),
str = require("@std/str"),
semver = require("@std/semver"),
env = require("@std/env"),
io = require("@std/io"),
colors = require("@std/colors"),
format = require("@std/io/format")... | 156 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/io/format.luau | luau | .luau | --[=[
Format objects for pretty printing to stdout/stderr.
]=]
export type format = setmetatable<{
--[=[
Formats `item` in the same way as `print` or `pp`.
Pass `options` to change the behavior of the formatter.
If you want to change ALL print/format.pretty/etc. formatting
throu... | 540 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/io/init.luau | luau | .luau | --[=[
Standard library for handling **terminal** input/output.
You can require the whole `@std/io` lib at once but it's recommended you require individual
libraries as you need them instead.
- To read input from the terminal, use `@std/io/prompt` or if you need lower-level control, `@std/io/input`.
... | 208 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/io/output.luau | luau | .luau | --[=[
Write to the terminal's stdout/stderr.
]=]
export type output = {
--[=[
Writes `contents` to stdout without any intermediate utf-8 validation.
The stream is flushed immediately after each write. Manual control over when flushing occurs is not available.
If you need explicit contro... | 651 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/json.luau | luau | .luau | --[=[
Easily manipulate JSON (JavaScript Object Notation) data.
## Usage
```luau
local json = require("@std/json")
local data = json.readfile("./animals.json") :: { cats: number, dogs: number }
data.cats += 1
json.writefile("./animals.json", data)
```
]=]
export type json = {
--- encodes a table as json; by defaul... | 366 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/net/init.luau | luau | .luau | --[=[
By default, the http and websocket libaries trust system certs, and have
differing behavior if zero system certs are found.
- The http library will throw errors due to ureq internals not allowing me
to write a happier fallback path, to handle this
- The websocket library will fall back to Mozi... | 197 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/net/request.luau | luau | .luau | return require("@std/net/http").request | 8 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/net/websocket.luau | luau | .luau | --[=[
By default, the websocket library trusts only system certs
and will fallback to Mozilla's CAs only if no certs are found.
To provide custom SSL certs, set `SSL_CERT_FILE` to a `.pem` certificate file,
and to disable system certs set `SEAL_SYSTEM_CERTS=false`.
- If `SEAL_SYSTEM_CERTS=false` ... | 280 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/base64.luau | luau | .luau | --[=[
good for serving binary stuff in a digestable form for serving things on the internet
]=]
export type base64 = {
encode: (data: string | buffer) -> string,
decode: (data: string) -> buffer,
urlsafe: {
encode: (data: string | buffer) -> string,
decode: (data: string) -> buffer
}
}
... | 88 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/bz2.luau | luau | .luau | export type bz2 = {
--[=[
Compresses bzip2-encoded (.bz2) data at compression `level`.
bzip2 levels range from 1 (fastest) to 9 (most compressed); defaults to 6.
]=]
compress: (content: string | buffer, level: number?) -> buffer,
--[=[
Decompress bzip2-encoded (.bz2) data up to ... | 131 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/gzip.luau | luau | .luau | export type gzip = {
--[=[
Compresses gzip-encoded (.gz) data at compression `level`.
gzip levels range from 0 (fastest) to 9 (most compressed); defaults to 6.
]=]
compress: (content: string | buffer, level: number?) -> buffer,
--[=[
Decompress gzip-encoded (.gz) data up to `max... | 121 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/hex.luau | luau | .luau | --[=[
Deal with hex data.
]=]
export type hex = {
encode: (data: buffer | string) -> string,
decode: (encoded: string) -> buffer,
}
return {} :: hex | 43 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/init.luau | luau | .luau | --[=[
Lib for serializing/deserializing/encoding/decoding different things.
]=]
local serde = {}
serde.json = require("@std/json")
serde.base64 = require("@std/serde/base64")
serde.toml = require("@std/serde/toml")
serde.yaml = require("@std/serde/yaml")
serde.lz4 = require("@std/serde/lz4")
serde.zstd = require(... | 106 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/json.luau | luau | .luau | --[=[
Easily manipulate JSON (JavaScript Object Notation) data.
## Usage
```luau
local json = require("@std/json")
local data = json.readfile("./animals.json") :: { cats: number, dogs: number }
data.cats += 1
json.writefile("./animals.json", data)
```
]=]
export type json = {
--- encodes a table as json; by defaul... | 366 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/lz4.luau | luau | .luau | --[=[
lz4 bindings
]=]
export type lz4 = {
compress: (input: string | buffer) -> buffer,
decompress: (compressed: string | buffer, expected_size: number) -> buffer,
}
return {} :: lz4 | 53 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/toml.luau | luau | .luau | --[=[
Serialize TOML files.
]=]
export type toml = {
encode: (t: TomlValue) -> string,
decode: (toml_data: string) -> TomlValue,
readfile: (path: string) -> TomlValue,
writefile: (path: string, content: TomlValue) -> (),
}
export type TomlValue = { [any]: any }
return {} :: toml | 92 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/url.luau | luau | .luau | export type url = {
--- Encodes `text` in urlsafe/percent encoding for use in urls.
encode: (text: string) -> string,
--- Decodes the url/percent-encoded string.
decode: (encoded: string) -> string,
binary: {
encode: (data: string | buffer) -> string,
decode: (encoded: string) -> buf... | 91 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/xz.luau | luau | .luau | export type xz = {
--[=[
Compresses xz-encoded (.xz) data at compression `level`.
xz levels range from 0 (fastest) to 9 (most compressed); defaults to 6.
]=]
compress: (content: string | buffer, level: number?) -> buffer,
--[=[
Decompress xz-encoded (.xz) data up to `max_size` (... | 126 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/yaml.luau | luau | .luau | --[=[
Serialize YAML files.
]=]
export type yaml = {
encode: (t: YamlValue) -> string,
decode: (toml_data: string) -> YamlValue,
readfile: (path: string) -> YamlValue,
writefile: (path: string, content: YamlValue) -> (),
}
type YamlValue = { [any]: any }
return {} :: yaml | 88 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/zlib.luau | luau | .luau | --[=[
Encode/decode with the zlib compression algorithm provided by the flake2 crate.
]=]
export type zlib = {
--[=[
Encodes (or compresses) the input data with zlib; "Fast" optimizes for compression speed
whereas "Best" optimizes for compressed size.
]=]
compress: (data: string | buffer... | 112 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/serde/zstd.luau | luau | .luau | export type ZstdOptions = {
checksum: boolean?,
content_size: boolean?,
dictid: boolean?,
window_log: number?,
}
--[=[
Use `Zstd` compression.
]=]
export type zstd = {
--[=[
By default, `zstd.compress` tries to match the Python implementation for wider compatibility, setting the options... | 207 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/.seal/typedefs/std/terminal/cursor.luau | luau | .luau | export type cursor = {
--[=[
Returns the current cursor position as a vector of `<column, row, 0>`.
]=]
position: () -> vector,
--[=[
Creates a <kbd>ShowCursor</kbd> `TerminalAction`.
Once invoked, shows the terminal cursor if hidden.
`TerminalActions` do nothing until ... | 1,700 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/Attachment.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "Attachment",
description = "Defines a point and orientation relative to an ancestor PVInstance, Bone, or another Attachment.",
since = "0.1.0",
properties = {
CFrame = {
description = "Relative transform of this attachment.",
type = t... | 105 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/BallSocketConstraint.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "BallSocketConstraint",
extends = "Constraint",
description = " Forces its two attachments into the same position and allows them to freely rotate about all three axes, with optional limits to restrict both tilt and twist. ",
since = "0.1.0",
... | 464 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/BasePart.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "BasePart",
description = "Abstract class for workspace objects that physically interact.",
abstract = true,
since = "0.1.0",
properties = {
Anchored = {
description = "Whether to not interact with physics",
type = t.Bool,
unmodifi... | 727 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/Camera.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "Camera",
description = "Class that defines the 3D view of a world.",
since = "0.1.0",
properties = {
CameraType = {
description = "Type of camera input",
type = t.EnumItem("CameraType"),
unmodified = "Enums::CameraType::Freecam",
... | 507 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/Constraint.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "Constraint",
description = "Abstract class for constraint-based instances.",
since = "0.1.0",
abstract = true,
properties = {
Active = {
description = "Whether if the constraint and both of its parts are in a WorldRoot and the Constrain... | 240 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/DataModel.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "DataModel",
extends = "ServiceProvider",
description = "Class that provides the root hierachy and services",
since = "0.1.0",
})
| 54 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/FileLink.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "FileLink",
description = "Class that synchronizes a filesystem directory into the DataModel",
since = "0.1.0",
properties = {
Path = {
description = "Path of the directory to synchronize from",
type = t.String,
unmodified = '""',
... | 188 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/Folder.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "Folder",
description = "Simple container for instances, offers little additional functionality",
since = "0.1.0",
})
| 46 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/Frame.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "Frame",
extends = "GuiObject",
description = "Class that renders a simple rectangle, best-suited as a container",
since = "0.1.0",
})
| 57 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/GlslSourceContainer.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "GlslSourceContainer",
description = "Abstract class for compiling shader bytecode",
abstract = true,
since = "0.1.0",
properties = {
Source = {
description = "GLSL source code of the shader",
type = t.String,
unmodified = "std::st... | 92 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/GuiBase.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "GuiBase",
description = "Abstract class for instances that compose graphical user interface",
abstract = true,
since = "0.1.0",
})
| 52 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/GuiBase2d.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "GuiBase2d",
extends = "GuiBase",
description = "Intermediate abstract class for instances that compose 2D graphical user interface",
abstract = true,
since = "0.1.0",
properties = {
AbsolutePosition = {
description = "Screen position o... | 232 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/GuiObject.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "GuiObject",
extends = "GuiBase2d",
description = "Abstract class for instances that compose 2D graphical user interface",
abstract = true,
since = "0.1.0",
properties = {
Active = {
description = "Whether this instance is actively bein... | 864 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/HingeConstraint.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "HingeConstraint",
extends = "Constraint",
description = " Constrains its attachments to rotate about a single axis. ",
since = "0.1.0",
properties = {
ActuatorType = {
description = "Sets whether the rotation of the HingeConstraint is a... | 696 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/InputObject.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "InputObject",
description = "Class that describes a user input at an instant.",
since = "0.1.0",
properties = {
Delta = {
description = "Describes the delta between input movements.",
type = t.Vector3,
unmodified = "glm::vec3(0.0f,... | 347 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/Instance.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "Instance",
description = "Abstract class for all instances which can be part of the DataModel",
since = "0.1.0",
root = true,
abstract = true,
properties = {
Archivable = {
description = "Whether this instance can be archived through c... | 1,568 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/LayerCollector.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "LayerCollector",
extends = "GuiBase2d",
description = "Abstract class for containg 2D user interface elements.",
abstract = true,
since = "0.1.0",
properties = {
Enabled = {
description = "Whether this instance should be rendered.",
... | 151 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/LuaSourceContainer.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
-- "oh im deadnaming Luau" ok in this case its justified because of
-- GlslSourceContainer, plus the interface we use is Lua. Plus what if we
-- wanted to support more than 1 Lua dialect??
name = "LuaSourceContainer",
description = "Abstract class f... | 149 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/ModuleScript.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "ModuleScript",
extends = "LuaSourceContainer",
description = "Class that contains a Lua module which can be required at runtime",
since = "0.1.0",
})
| 58 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/Part.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "Part",
extends = "BasePart",
description = "Class that renders a primitive shape",
since = "0.1.0",
properties = {
Shape = {
description = "Primitive shape of this instance",
type = t.EnumItem("PartType"),
unmodified = "Enums::Par... | 95 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/PrismaticConstraint.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "PrismaticConstraint",
extends = "SlidingBallConstraint",
description = " Constraint its attachments to slide along one axis but not rotate. ",
since = "0.1.0",
})
| 61 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/ScreenGui.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "ScreenGui",
extends = "LayerCollector",
description = "Class to store 2D user interface elements.",
since = "0.1.0",
})
| 54 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/Script.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "Script",
extends = "LuaSourceContainer",
description = "Class that runs the source code in an asynchronous thread",
since = "0.1.0",
properties = {
Enabled = {
description = "Whether this script is actively running",
type = t.Bool,
... | 167 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/ServiceProvider.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "ServiceProvider",
description = "Abstract class that stores and provides singleton classes.",
abstract = true,
since = "0.1.0",
signals = {
Close = {
description = "Fired when this service provider is closed.",
},
ServiceAdded = {
... | 237 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/SlidingBallConstraint.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "SlidingBallConstraint",
extends = "Constraint",
description = " The base class for constraints that allow their attachments to slide along an axis but not rotate. ",
since = "0.1.0",
properties = {
ActuatorType = {
description = "Sets w... | 680 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/WeldConstraint.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "WeldConstraint",
-- DEVIATION: Inherit from Constraint here unlike Roblox to simplify the
-- WorldRoot physics
extends = "Constraint",
description = " Connects two BaseParts together such that their relative position and orientation remain th... | 187 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/classes/WorldRoot.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "WorldRoot",
description = "Abstract class for a physical 3D world.",
abstract = true,
since = "0.1.0",
properties = {
Gravity = {
description = "Determines the acceleration due to gravity applied to falling BaseParts.",
type = t.Floa... | 161 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/services/CoreGui.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "CoreGui",
description = "Class to contain persistent graphical user interfaces, intended for core systems like Gargantuan Studio.",
since = "0.1.0",
})
| 56 |
teamfireworks/gargantuan | teamfireworks-gargantuan-191e144/assets/data/services/ProcessService.luau | luau | .luau | const c, t, p = require("@scripts/classes").unpack()
return c({
name = "ProcessService",
description = "Provides access to the system process.",
since = "0.1.0",
methods = {
ExitAsync = {
description = "Exits the system process with the specified exit code. Yields indefinitely.",
asLuau = true,
luauSig... | 174 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.