This file contains 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 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 KeePass --source winget --accept-package-agreements | |
winget install Dropbox --source winget --accept-package-agreements |
This file contains 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 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 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 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 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 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(); |