Skip to content

Instantly share code, notes, and snippets.

View AndreSacilotto's full-sized avatar
🧲
Gotcha

Andre Sacilotto AndreSacilotto

🧲
Gotcha
View GitHub Profile
@AndreSacilotto
AndreSacilotto / MathF.cs
Created June 5, 2024 23:52
MathF only exist on .net6/7 this is for version prior that
#if NET472
using System.Runtime.CompilerServices;
using static Util.UtilShared;
namespace System;
/// <summary>
/// System.Math float Wrapper, wrapping every and only funtions that doesnt accept float
@AndreSacilotto
AndreSacilotto / N-DiceCombinatory.cs
Last active February 29, 2024 02:17
DiceCombinatory
static void Roll(string s = "", int depth = 1, int sides = 6)
{
if (depth == 0)
Console.WriteLine(s.Substring(1));
else
for (int i = 1; i <= sides; i++)
Roll(s + "," + i, depth - 1);
}
static int[][] DiceCombinatoryEntry(int times, int diceSides = 6)
@AndreSacilotto
AndreSacilotto / classMemory_v2.ahk
Created November 11, 2023 06:40
RHCP Memory Class adapted to AHK v2 (Not fully tested)
; from: https://github.com/Kalamity/classMemory ported to v2 by me (only tested read and write)
#Requires AutoHotkey v2.0
#SingleInstance Force
global A_IsUnicode := 1
; ^Esc::ExitApp
; F3::{