Skip to content

Instantly share code, notes, and snippets.

View catgirlinspace's full-sized avatar
🏳️‍⚧️
happy pride month!!

rosalina saige catgirlinspace

🏳️‍⚧️
happy pride month!!
View GitHub Profile
@catgirlinspace
catgirlinspace / SplashcatPrivacy.md
Last active January 15, 2024 00:11
Splashcat TOS and Privacy Policy

Splashcat Privacy Policy

Splashcat.ink ("Splashcat", "the service") takes privacy seriously.

How Your Data is Used

Splashcat provides aggregated exports of battles uploaded to the service. In these exports all IDs are hashed, but it may still be possible for uploaded records to be linked back to the uploader. In order to provide the service, Splashcat stores some personal user data that you provide such as a username, display name, or pronouns. Splashcat also stores all data sent from an uploader, including any data that isn't processed into Splashcat's proprietary format.

Third Party Data Processors

@catgirlinspace
catgirlinspace / readme.md
Last active January 12, 2023 05:51
splatnet 3 paths

hi! this is a list of all¹ the paths in the splatnet 3 application as of september 10th, 2022. a lot of these are probably not useful for external applications. i found all these manually through developer tools. some may be incorrect. a : indicates that it's a parameter. i have marked what i considered to be notable with a ⭐️ emoji.

these can be used to launch the splatnet 3 application on a device with the nintendo switch online app installed. on ios, this is done with com.nintendo.znca://znca/game/4834290508791808?p=<url encoded path>. i am not sure how this works on android, but it's probably similar. for example, to open the anarchy schedule, use com.nintendo.znca://znca/game/4834290508791808?p=%2Fschedule%2Fbankara.

@Mullets-Gavin
Mullets-Gavin / GetProperties.lua
Last active September 1, 2023 21:49
Get all the properties on an instance
local Cached = {}
local Properties = {
"AttachmentForward",
"AttachmentPoint",
"AttachmentPos",
"AttachmentRight",
"AttachmentUp",
"AlignType",
"MaxAngularVelocity",
"MaxTorque",
@stravant
stravant / GoodSignal.lua
Last active July 16, 2024 06:26
Good Roblox Signal Implementation
--------------------------------------------------------------------------------
-- Batched Yield-Safe Signal Implementation --
-- This is a Signal class which has effectively identical behavior to a --
-- normal RBXScriptSignal, with the only difference being a couple extra --
-- stack frames at the bottom of the stack trace when an error is thrown. --
-- This implementation caches runner coroutines, so the ability to yield in --
-- the signal handlers comes at minimal extra cost over a naive signal --
-- implementation that either always or never spawns a thread. --
-- --
-- API: --
@EgoMoose
EgoMoose / ViewportModel.lua
Last active May 11, 2024 06:31
Lua class to calculate camera distance/cframe for fitting models into viewport frames
--[[
MIT License
Copyright (c) 2021 EgoMoose
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
@catgirlinspace
catgirlinspace / AveragePlayTime.kql
Last active September 19, 2021 18:11
Roblox PlayFab Data Explorer Quieries
['events.all']
| where FullName_Name == "_Player_Leave"
| where isnotnull(EventData.data.sessionTime) // older _Player_Leave events dont have this
| summarize SessionTime = avg(todouble(EventData.data.sessionTime) * 1s)
-- Consider using Thread instead!
-- https://gist.github.com/CloneTrooper1019/538f0ab2541ef98912a2694dd8d274e7
local RunService = game:GetService("RunService")
local threads = {}
RunService.Stepped:Connect(function ()
local now = tick()
local resumePool
-- Grab some services.
local Lighting = game:GetService("Lighting")
local RunService = game:GetService("RunService")
-- Make sure this is running from a LocalScript.
if not RunService:IsClient() then
error("This should be running in a LocalScript!")
end
-- Create a Sound object for the music.
@Dekkonot
Dekkonot / sha1.lua
Last active October 13, 2023 02:07
Implementation of the SHA-1 hashing algorithm for Roblox
-- I claim no copyright over this source code and you can use it for whatever you want. Just don't sue me.
local ASSERTIONS_ENABLED = true -- Whether to run several checks when the module is first loaded and when a message is preprocessed.
local INIT_0 = 0x67452301
local INIT_1 = 0xEFCDAB89
local INIT_2 = 0x98BADCFE
local INIT_3 = 0x10325476
local INIT_4 = 0xC3D2E1F0
@evaera
evaera / Clean Code.md
Last active July 16, 2024 04:30
Best Practices for Clean Code
  1. Use descriptive and obvious names.
    • Don't use abbreviations, use full English words. player is better than plr.
    • Name things as directly as possible. wasCalled is better than hasBeenCalled. notify is better than doNotification.
    • Name booleans as if they are yes or no questions. isFirstRun is better than firstRun.
    • Name functions using verb forms: increment is better than plusOne. unzip is better than filesFromZip.
    • Name event handlers to express when they run. onClick is better than click.
    • Put statements and expressions in positive form.
      • isFlying instead of isNotFlying. late intead of notOnTime.
      • Lead with positive conditionals. Avoid if not something then ... else ... end.
  • If we only care about the inverse of a variable, turn it into a positive name. missingValue instead of not hasValue.