Skip to content

Instantly share code, notes, and snippets.

@boatbomber
boatbomber / release.luau
Last active October 30, 2024 21:58
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")
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 November 14, 2024 11:34
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 October 16, 2024 15:52
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 December 15, 2023 12:42
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 November 17, 2024 12:06
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)
@merqurio
merqurio / CLA.md
Created November 7, 2017 07:42
CLA Template

Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Project - is an umbrella term that refers to any and all IOMED Medical Solution S.L. open source projects.
  • Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with IOMED Medical Solution S.L., contributors or maintainers.

1. Grant of Copyright License.