Skip to content

Instantly share code, notes, and snippets.

View simplexidev's full-sized avatar

Thomas Corwin simplexidev

View GitHub Profile
/***************************************************************************************************
* FileName: PlatformHelper.cs
* Date: 20180913
* Copyright: Copyright © 2017-2019 Thomas Corwin, et al. All Rights Reserved.
* License: MIT License
**************************************************************************************************/
using System;
using System.IO;
using System.Runtime.InteropServices;

Removes all comments of the following formats in C#:

// Single line

/// Single line (doumentation)

/* Single line */

/*
@simplexidev
simplexidev / pkglistgen.sh
Last active July 16, 2023 06:04
TempPackageList
#!/bin/bash
# Check if output file argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 <output_file>"
exit 1
fi
output_file="$1"