Skip to content

Instantly share code, notes, and snippets.

@boatbomber
boatbomber / release.luau
Last active June 10, 2025 01:36
Release workflow using Lune
--[[
release.luau - A Lune script for publishing Roblox games
MPL 2.0 License
(c) 2024, Zack Ovits
usage: lune run release
--]]
-- Lune libraries
local stdio = require("@lune/stdio")
@mvyasu
mvyasu / createWireChainWith.lua
Last active July 5, 2025 15:26
chains together different wireable objects with wires in an easy to understand manner
--!strict
type AudioModifier = AudioEcho | AudioFader | AudioChorus | AudioReverb | AudioFlanger | AudioEqualizer | AudioCompressor | AudioDistortion | AudioPitchShifter
type AudioProcessor = AudioAnalyzer | AudioListener
type AudioOutput = AudioEmitter | AudioDeviceOutput
type AudioInput = AudioDeviceInput | AudioPlayer
export type Wireable = AudioModifier | AudioProcessor | AudioOutput | AudioInput
local function createWire(source: Wireable, target: Wireable, sourceName: string, targetName: string, parent: Instance): Wire
local Frustum = {}
local function planeFromPoints(p0, p1, p2)
local normal = (p1 - p0):Cross(p2 - p1).Unit
return {
normal = normal,
d = -normal:Dot(p0),
}
end
@torcado194
torcado194 / cleanEdge-shadertoy.glsl
Last active July 17, 2025 22:33
cleanEdge, a pixel art upscaling algorithm for clean rotations
/*** MIT LICENSE
Copyright (c) 2022 torcado
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 to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
@cxmeel
cxmeel / README.md
Last active December 10, 2024 22:43
Markdown buttons

Markdown Buttons

The documentation has been moved to this gist in order to reduce lag.

(function(namespace) {
function Create(className = "span", attributes = {}, ...children) {
const node = document.createElement(className)
let onInit = null
const events = {
event: {},
}
for (const [attributeName, attributeValue] of Object.entries(attributes)) {
@boatbomber
boatbomber / publish.yml
Last active March 13, 2025 01:38
A publishing workflow for Roblox projects
## Welcome to boatbomber's publish workflow.
# You'll need a few things in your GitHub Action secrets for this to work:
# - ROBLOSECURITY : A cookie of a Roblox account (used to install Studio for testing)
# - RBXID : Another cookie from the account (also used in Studio install)
# - PUBLISHCLOUD : A Roblox OpenCloud API key with Write permission in Place Management for your game
# This workflow assumes that you have:
# - A `aftman.toml` with rojo, wally, selene, darklua, and run-in-roblox
# - A `default.project.json` that builds a place file
@sindresorhus
sindresorhus / esm-package.md
Last active July 23, 2025 15:49
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@cxmeel
cxmeel / A_RawSignal.lua
Last active November 8, 2022 15:56
Recreation of Roblox RBXScriptSignals in pure Lua
--[[
RawSignal by csqrl (ClockworkSquirrel)
Version: 0.0.2
License: MIT
Originally uploaded to Dcoder.
Documentation:
Signal:
Methods:
-- black frames not included
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local Camera = Workspace.CurrentCamera
local Module = {}
Module.Position = UDim2.new(0, 0, 0, 0)