Skip to content

Instantly share code, notes, and snippets.

View dtomic28's full-sized avatar

Danijel Tomić dtomic28

View GitHub Profile
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `mydb`
--
-- --------------------------------------------------------
# Define the root folder name
$rootFolder = "DXEProjects"
# Define the subfolder names
$subfolders = @("Addons", "Assets")
$assetSubfolders = @("Cameras", "Math", "Plugin", "VCs")
# Create the root folder
New-Item -ItemType Directory -Path $rootFolder
@dtomic28
dtomic28 / reverse_bit.c
Created February 11, 2024 20:49 — forked from ikautak/reverse_bit.c
reverse MSB LSB bit.
unsigned char reverse_bit8(unsigned char x)
{
x = ((x & 0x55) << 1) | ((x & 0xAA) >> 1);
x = ((x & 0x33) << 2) | ((x & 0xCC) >> 2);
return (x << 4) | (x >> 4);
}
unsigned short reverse_bit16(unsigned short x)
{