Skip to content

Instantly share code, notes, and snippets.

View Fizzyhex's full-sized avatar

Fizzy Fizzyhex

View GitHub Profile
@Fizzyhex
Fizzyhex / github_repo_size_viewer.js
Last active June 11, 2024 13:23
GitHub Repository Size Viewer
// ==UserScript==
// @name GitHub Repository Size
// @namespace http://tampermonkey.net/
// @version 2024-06-11
// @description View the size of public GitHub repositories.
// @author Fizzyhex
// @match https://github.com/*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @version 1.0.0
// @downloadURL https://gist.githubusercontent.com/Fizzyhex/64c0714cd7b60a18d01b2c275bbcda44/raw/85f5a4b5b9d9118c4b3464b85758d9b4de5c4af6/.js
@Fizzyhex
Fizzyhex / sample.lua
Created January 16, 2024 20:55
Luau Sample Function
--!strict
-- src: https://gist.github.com/Uradamus/10323382
local function shuffle<T>(tbl: { T }): { T }
tbl = table.clone(tbl)
for i = #tbl, 2, -1 do
local j = math.random(i)
tbl[i], tbl[j] = tbl[j], tbl[i]
end
@Fizzyhex
Fizzyhex / Rating.lua
Last active January 21, 2024 17:50
⭐ Star Rating UI (Fusion v0.3 pre-release)
-- Note that the components in this script should ideally be split up into different scripts; which I didn't do here.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Fusion = require(ReplicatedStorage.Packages.Fusion)
local Computed = Fusion.Computed
local New = Fusion.New
local Children = Fusion.Children
local ForValues = Fusion.ForValues
@Fizzyhex
Fizzyhex / spawnBall.lua
Last active January 21, 2024 17:50
⚽ Team create football - A fun script for Roblox team create
--[[
@Fizzyhex, 2023
Select the part you want to use as a ball and paste this into your command bar!
This script will then clone it and turn it into a ball.
For others to kick the ball around they'll need to run this script too. Have fun :>
----
Extra:
@Fizzyhex
Fizzyhex / Bin.lua
Last active September 8, 2023 15:18
Explicit Bin - requires you to pass functions or method names
local function wrapDestructorMethod(object, destructor)
return function()
destructor(object)
end
end
--- Creates a new bin object for cleanup.
local function Bin()
local contents: { [any]: boolean } = {}
@Fizzyhex
Fizzyhex / Bin.lua
Last active August 10, 2023 10:59
Bin
--!strict
local function wrapDestructor(object, method: (...any) -> ...any)
return function()
method(object)
end
end
--- Creates a new bin object for cleanup.
local function Bin()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Fusion = require(ReplicatedStorage.Fusion)
local Observer = Fusion.Observer
local Computed = Fusion.Computed
local Value = Fusion.Value
local New = Fusion.New
local Children = Fusion.Children
local function ProgressSquare(props)
@Fizzyhex
Fizzyhex / ImageText.story.lua
Last active September 8, 2023 15:12
Text with image support test (Fusion v0.2)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Fusion = require(ReplicatedStorage.Fusion)
local New = Fusion.New
local ForPairs = Fusion.ForPairs
local Children = Fusion.Children
local Computed = Fusion.Computed
local Value = Fusion.Value
local function ImageText(props)
-- -- -- --
local Model = Instance.new("Model",workspace)
O = Instance.new('Part',Model)
O.Name = 'Part'
O.Shape = Enum.PartType.Block
O.Anchored = true
O.BackParamA = -0.5
O.BackParamB = 0.5
O.BackSurface = Enum.SurfaceType.Smooth
This file has been truncated, but you can view the full file.
local Model = Instance.new("Model",workspace)
O = Instance.new('Model',Model)O.Name = 'House'
P={}
for i,v in pairs (P) do O[i] = v end
O = Instance.new('WedgePart',Model.House)O.Name = 'Wedge'
P={['Anchored']=true;
['BackParamA']=-0.5;
['BackParamB']=0.5;
['BackSurface']=Enum.SurfaceType.Smooth;