This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################## | |
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
@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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!strict | |
local function wrapDestructor(object, method: (...any) -> ...any) | |
return function() | |
method(object) | |
end | |
end | |
--- Creates a new bin object for cleanup. | |
local function Bin() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
NewerOlder