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 BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Jobs; | |
| namespace MikeysBenchmarks; | |
| [SimpleJob(RuntimeMoniker.Net70)] | |
| [MemoryDiagnoser()] | |
| [MarkdownExporter] | |
| public class SpanTrimZ | |
| { |
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
| # General | |
| winget install Google.Chrome --accept-package-agreements | |
| winget install windirstat --source winget --accept-package-agreements | |
| winget install screentogif --source winget --accept-package-agreements | |
| winget install Microsoft.VisualStudioCode --accept-package-agreements | |
| winget install obsidian --source winget --accept-package-agreements | |
| winget install typora --source winget --accept-package-agreements | |
| winget install ScooterSoftware.BeyondCompare.5 --accept-package-agreements | |
| winget install Docker.DockerDesktop --accept-package-agreements |
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
| $old = "AngularDemo" | |
| $new = "NewProjectName" | |
| Get-ChildItem -Filter "old" - Recursive | Rename-Item -NewName { $.name -replace $old, $new } | |
| $filesTypesToSearch = @(".cs", ".sln", ".csproj", ".config", "*.json") | |
| Get-ChildItem -Include $filesTypesToSearch -Recurse | | |
| ForEach-Object { $a = $.FullName; ( Get-Content $a ) | | |
| ForEach-Object { $_ -replace $old, $new } | |
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
| javascript:(function() { | |
| function selectNode(node) { | |
| const range = document.createRange(); | |
| range.selectNode(node); | |
| const selection = window.getSelection(); | |
| selection.removeAllRanges(); | |
| selection.addRange(range); | |
| } |
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
| root = true | |
| # Version: 2.1.0 (Using https://semver.org/) | |
| # Updated: 2021-03-03 | |
| # See https://github.com/RehanSaeed/EditorConfig/releases for release notes. | |
| # See https://github.com/RehanSaeed/EditorConfig for updates to this file. | |
| # See http://EditorConfig.org for more information about .editorconfig files. | |
| ########################################## | |
| # Common Settings | |
| ########################################## |
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
| javascript:(function() { | |
| function selectNode(node) { | |
| const range = document.createRange(); | |
| range.selectNode(node); | |
| const selection = window.getSelection(); | |
| selection.removeAllRanges(); | |
| selection.addRange(range); | |
| } |
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
| javascript: (function () { | |
| function selectNode(node) { | |
| const range = document.createRange(); | |
| range.selectNode(node); | |
| const selection = window.getSelection(); | |
| selection.removeAllRanges(); | |
| selection.addRange(range); | |
| } |
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 static class SqlBulkCopyEx | |
| { | |
| public static void BulkInsert<T>(string connectionString, IEnumerable<T> list, int batchSize = 0, string table = null) | |
| { | |
| using (var bulkCopy = new SqlBulkCopy(connectionString)) | |
| { | |
| var type = typeof (T); | |
| var tableName = type.Name; | |
| var tableAttribute = (TableAttribute)type.GetCustomAttributes(typeof (TableAttribute), false).FirstOrDefault(); |