This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[buildPlans.iosevka-custom] | |
family = "Iosevka Custom" | |
spacing = "term" | |
serifs = "sans" | |
no-cv-ss = true | |
[buildPlans.iosevka-custom.variants] | |
inherits = "ss10" | |
[buildPlans.iosevka-custom.variants.design] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on js version -> https://gist.github.com/dehghani-mehdi/df7f216d8031abad8c911b8117b7000e | |
public bool IsValidNationalCode(string value) | |
{ | |
// extract only numbers form the value | |
value = new string(value?.Where(char.IsDigit).ToArray()); | |
if (value.Length != 10 || Regex.IsMatch(value, @"(\d)(\1){9}")) return false; | |
var sum = 0; | |
var chars = value.ToCharArray(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ref: https://stackoverflow.com/a/538238/3367974 | |
public class Foo : IDisposable | |
{ | |
protected void Dispose(Boolean disposing) | |
{ | |
// free unmanaged resources | |
if (disposing) | |
{ | |
// free managed resources |
OlderNewer