Skip to content

Instantly share code, notes, and snippets.

@spelled-ayayron
spelled-ayayron / curve.lua
Last active February 11, 2024 22:58
Smooth logarithmic volume curve
y = 10 ^ ((33.22 * math.log10(x)) / 20)
@spelled-ayayron
spelled-ayayron / gist:6a4ceffa4a1e36febcea84990ce7e798
Last active January 5, 2024 21:01
Firefox smoothScroll.msdPhysics Spring Values
general.smoothScroll.currentVelocityWeighting 0
general.smoothScroll.mouseWheel.durationMaxMS 150
general.smoothScroll.msdPhysics.enabled true
general.smoothScroll.msdPhysics.motionBeginSpringConstant 300
general.smoothScroll.msdPhysics.regularSpringConstant 250
general.smoothScroll.msdPhysics.slowdownSpringConstant 500
general.smoothScroll.stopDecelerationWeighting 0.82
@spelled-ayayron
spelled-ayayron / AnimationPlayer.lua
Created January 20, 2023 17:48
Generic wrapper for playing animation tracks by name
--- Makes playing and loading tracks into a Animator easy
-- @classmod AnimationPlayer
local RunService = game:GetService("RunService")
local Knit = require(game.ReplicatedStorage.Packages.Knit)
local Signal = require(game.ReplicatedStorage.Packages.Signal)
local AnimationPlayer = {}
AnimationPlayer.__index = AnimationPlayer
AnimationPlayer.ClassName = "AnimationPlayer"
/* Custom CSS Colors for Discord /*
/* Made for Lode by Leeprky, but should work without the theme too /*
:root {
/* Gradients */
--default-gradient: 315deg, #fc8c8c7c 0%, #c07070 74% !important;
--special-gradient: 315deg, #8980F0 0%, #D577F0 74% !important;
--red-gradient: 315deg, #AA3738 0%, #F04747 74% !important;
--yellow-gradient: 315deg, #C2831B 0%, #FFB740 74% !important;
--green-gradient: 315deg, #4db478 0%, #6ecf97 74% !important;
local BehaviorTree = {} do
local function ProcessNode(node, nodes)
if node.type == "task" then
local task = {
type = "task",
status = nil,
start = node.params.start,
run = node.params.run,
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using npm@6.4.1
3 info using node@v10.15.3
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle devlapse@0.0.2~prebuild: devlapse@0.0.2
6 info lifecycle devlapse@0.0.2~build: devlapse@0.0.2
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dist_win32' ]
2 info using npm@6.4.1
3 info using node@v10.15.3
4 verbose run-script [ 'predist_win32', 'dist_win32', 'postdist_win32' ]
5 info lifecycle devlapse@0.0.2~predist_win32: devlapse@0.0.2
6 info lifecycle devlapse@0.0.2~dist_win32: devlapse@0.0.2