Microsoft.Extensions.Configuration.Json
Microsoft.Extensions.DependencyInjection
Microsoft.Extensions.Options.ConfigurationExtensions
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
[user] | |
name = Lw | |
email = [email protected] | |
username = lws | |
[credential] | |
helper = manager-core | |
[core] | |
editor = nano |
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
alias n='nano -w' | |
alias l1='ls -1' | |
alias ll='ls -l' | |
alias lr='ls -1R' | |
alias ff='find . -type f' | |
alias npp='/c/Program\ Files/Notepad++/notepad++.exe' | |
alias ..='cd ..' | |
alias wm="/c/Program\ Files\ \(x86\)/WinMerge/WinMergeU.exe" | |
alias sq3='winpty sqlite3.exe' | |
alias md5='winpty md5.exe' |
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
public class NetworkOnMainThreadException : ApplicationException | |
{ | |
public NetworkOnMainThreadException() | |
{ | |
} | |
public NetworkOnMainThreadException(string message) | |
: base(message) | |
{ | |
} |
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
$userPath = $env:USERPROFILE | |
$pathExclusions = New-Object System.Collections.ArrayList | |
$processExclusions = New-Object System.Collections.ArrayList | |
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
$pathExclusions.Add('C:\Windows\assembly') > $null | |
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null | |
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null | |
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null | |
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null |
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
var InString = "bla_BLA_bla"; | |
var patternUpperCamelCase = @"(^|[_-])([a-zA-Z0-9])([a-zA-Z0-9]+)"; | |
var pattern2 = @"((?<First>^[a-zA-Z0-9])|(?<Separator>[_-]|\s)(?<Next>[a-zA-Z0-9]))(?<Body>[a-zA-Z0-9]{0,})"; | |
var pattern = @"((?<First>^[a-zA-Z0-9])|(?<Separator>[^a-zA-Z0-9]|\s)+(?<Next>[a-zA-Z0-9]))(?<Body>[a-zA-Z0-9]{0,})"; | |
var result = Regex.Replace(InString, pattern, match => | |
{ | |
var sb = new StringBuilder(); | |
if (match.Groups["First"].Success) | |
{ | |
sb.Append("_"); |
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
public class Employe : INotifyPropertyChanged | |
{ | |
public int EmployeId { get; set; } | |
public string EmployeName { get; set; } | |
public Department EmployeDepartment { get; set; } | |
//public override string ToString() | |
//{ |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Dynamic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; |
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
var namen = new string[] { "Lech", "Mai", "Theo", "Xenia", "Ewa", "Andrzej" }; | |
var d = namen.ToDictionary(k => k,v=> Regex.IsMatch(v, @"i")); | |
var g = namen.GroupBy(x => Regex.IsMatch(x, @"i")); | |
var l = namen.ToLookup(x=> Regex.IsMatch(x, @"i")); | |
var s = namen.Select(x => new { Key = x, Value=Regex.IsMatch(x, @"i") }); | |
var kv = namen.Select(x => new KeyValuePair<string,bool>(x, Regex.IsMatch(x, @"i") )); | |
Console.WriteLine(d); | |
Console.WriteLine(g); |