Character encoding is annoying but necessary. Here's code for standardized byte order marks (BOM)
Just a quick starter project in C-style C++ with SDL2, OpenGL 3, and Dear ImGui. This came about from deciding to make a sudoku game for my wife, getting all the necessary libraries setup with CMake was a pain so this serves as a starting point for next time.
#Requires -Version 4
After something being wayyyy easier than I thought it was going to be, I’m ready to claim that PowerShell is better when not used on Windows. I submit the following 1-liner as evidence:
There are times where you'd like to create a dummy file for testing, if you're on Windows you may be familiar with the '
fsutil file createnew' command. This allows you to create a zero filled file of a predefined size, fantastic. It's a small, but powerful, command that is included with every Windows install but let's assume you need a PowerShell native method for creating a zero filled file, what might that look like?