Skip to content

Instantly share code, notes, and snippets.

View Rinzii's full-sized avatar

Ian Pike Rinzii

View GitHub Profile
@Rinzii
Rinzii / round_mode.hpp
Last active May 19, 2024 23:33
Find the current rounding mode both during compile time and run time in C++20
/*
* MIT License
*
* Copyright (c) 2024 Ian Pike
*
* 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
@Rinzii
Rinzii / UnityBuild.py
Created September 11, 2022 05:10 — forked from elibroftw/UnityBuild.py
A Python script to build Unity projects without the editor open.
import subprocess
import shutil
import os
import zipfile
import threading
print('Cleaning up build directory')
shutil.rmtree('Builds', ignore_errors=True)