Skip to content

Instantly share code, notes, and snippets.

View iamr8's full-sized avatar
🎯
Focusing

Arash Shabbeh iamr8

🎯
Focusing
View GitHub Profile
@MrLuje
MrLuje / setup-win-defender-exclusions.ps1
Last active March 6, 2024 15:06
Script to exclude folders & processes from Windows Defender to be more developper-friendly
# Setup Windows Defender common exclusion
Write-Host "Excluding paths..."
Add-MpPreference -ExclusionPath "$env:appdata\npm"
Add-MpPreference -ExclusionPath "$env:appdata\nvm"
# These folders contains most of my repo, you may want to change it to your owns
Add-MpPreference -ExclusionPath "C:\Temp"
Add-MpPreference -ExclusionPath "C:\Vincent"
@Davidblkx
Davidblkx / LevenshteinDistance.cs
Created November 10, 2016 17:45
Levenshtein Distance in c#
using System;
namespace Algorithms
{
public static class LevenshteinDistance
{
/// <summary>
/// Calculate the difference between 2 strings using the Levenshtein distance algorithm
/// </summary>
/// <param name="source1">First string</param>
@yadyn
yadyn / SemanticVersion.cs
Created May 6, 2011 18:11
Semantic Version C# class
using System;
using System.Collections.Generic;
using System.Text;
/// <summary>
/// Represents assembly, application, or other version information,
/// compliant with the Semantic Versioning specifications.
/// </summary>
/// <remarks>
/// See http://semver.org/ for specifications.