Skip to content

Instantly share code, notes, and snippets.

Visual Studio 2026 18.x
Professional: NVTDK-QB8J9-M28GR-92BPC-BTHXK
Enterprise: VYGRN-WPR22-HG4X3-692BF-QGT2V
Product Year Version Product Keys
Visual Studio 2022 2021 17.x
Professional: TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Enterprise: VHF9H-NXBBB-638P6-6JHCY-88JWH
Visual Studio 2019 2019 16.x
@pikoslav
pikoslav / ASCIIStringExtensions.cs
Created March 5, 2023 01:38 — forked from andyraddatz/ASCIIStringExtensions.cs
C# String extension method to fold diacritics to ASCII characters
// IMPORTANT
using System.Text;
// This gist was created thanks to this comment from Alexander on StackOverflow:
// https://stackoverflow.com/questions/249087/how-do-i-remove-diacritics-accents-from-a-string-in-net#comment86833005_34272324
// This is a derivative work. The logic of this function comes from a switch statement found inside the
// Lucene.Net library. The documentation of the conversion of characters is quite impressive
// (thank you @NightOwl888 and @synhershko !!!):
// https://github.com/apache/lucenenet/blob/master/src/Lucene.Net.Analysis.Common/Analysis/Miscellaneous/ASCIIFoldingFilter.cs
@pikoslav
pikoslav / CallingTypeBenchmark.cs
Created September 7, 2022 06:09
CallingTypeBenchmark
using System.Diagnostics;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace CallingTypeBenchmark;
// NuGet: BenchmarkDotNet
public delegate Int64 AClassicCall(Int64 aLong, String aString, SimulatedPayload aPayload);
using System;
namespace Utils;
public static class SlovenianNumberToWords
{
public enum Gender
{
Masculine,
Feminine,
using System;
using System.Globalization;
using System.IO;
using System.Linq;
using CsvHelper;
namespace ConsoleApp1
{
class Program
{