Skip to content

Instantly share code, notes, and snippets.

View Fizzyhex's full-sized avatar
:octocat:

Fizzy Fizzyhex

:octocat:
View GitHub Profile
@Fizzyhex
Fizzyhex / ObjectPathExtensions.cs
Created February 22, 2025 03:32
Non-dummy version of ObjectPathExtensions
using System.Collections.Generic;
using JetBrains.Annotations;
using UnityEngine;
namespace SLZ.Marrow.Utilities
{
public static class ObjectPathExtensions
{
private static IEnumerable<string> ObjectPathComponents(this Transform tf)
{
@Fizzyhex
Fizzyhex / font_renamer.py
Created January 29, 2025 15:16
Python utility for renaming ttf font files
##############################################
# Source: https://superuser.com/questions/120593/how-do-you-change-a-ttf-font-name
# Requires fonttools: pip install fonttools
#
# Usage: rename_font.py <input_path> <output_path> <new_name>
# Example: rename_font.py Tahoma.ttf Tahoma7.ttf "Tahoma7"
##############################################
from fontTools.ttLib import TTFont
import sys
@Fizzyhex
Fizzyhex / SNAKE.cpp
Last active November 29, 2024 14:09
🐍 C++ Snake
// SNAKE.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <vector>
#include <windows.h>
#include <random>
using namespace std;
@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 May 21, 2025 08:37
⭐ 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)