Skip to content

Instantly share code, notes, and snippets.

View nightm4re94's full-sized avatar

Matthias nightm4re94

View GitHub Profile
@nightm4re94
nightm4re94 / spriteInfoGenerator.ps1
Created August 18, 2024 15:46
LITIENGINE sprite info generator
# This PowerShell script will help you generate sprite info files for LITIENGINE.
# Define the path to the folder containing the images
$folderPath = "."
# Define the path to the output text file
$outputFilePath = "sprites.info"
Get-ChildItem -Recurse $folderPath -Include "*.jpg","*.png","*.bmp" | % {
$image = [System.Drawing.Image]::FromFile($_.FullName)
[PSCustomObject]@{
@nightm4re94
nightm4re94 / versioning.gradle
Last active March 15, 2023 17:14
Gradle semantic versioning
tasks.named("printGitSemVer") {
group = "versioning"
description = "Prints the Gradle project version resolved from git tags."
}
tasks.register("incrementMajorVersion") {
group = "versioning"
doLast {
String newTag