// jQuery
$(document).ready(function() {
// code
})
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
| mkdir c:\github | |
| winget install --id=Git.Git -e --accept-package-agreements --accept-source-agreements | |
| winget install --id=Microsoft.VisualStudioCode -e | |
| winget install --id=AgileBits.1Password -e | |
| winget install --id=7zip.7zip -e | |
| winget install --id=Twilio.Authy -e | |
| winget install --id=Bethesda.Launcher -e | |
| winget install --id=Microsoft.Bicep -e | |
| winget install --id=Microsoft.bitsmanager -e | |
| winget install --id=BrutalChess.BrutalChess -e |
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
| void Main() | |
| { | |
| var messageCount = 10000; | |
| var sum =0L; | |
| var result = ThroughputTestResult.Capture(messageCount, () => sum = SumOfSquares(messageCount)); | |
| Console.WriteLine($"Result: SumOfSquares({messageCount}) = {sum}"); | |
| Console.WriteLine(result.ToString()); | |
| } |
| title | subtitle | author | date | source | notoc |
|---|---|---|---|---|---|
Dotnet Core Cheat Sheet |
This cheat sheet is courtesy Ben Day |
Ben Day |
August 22, 2017 |
false |
This cheat sheet is courtesy Ben Day and is available here. This Markdown file is just for easy reference for programmers.
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
| /// <summary> | |
| /// Normalize line endings. | |
| /// </summary> | |
| /// <param name="lines">Lines to normalize.</param> | |
| /// <param name="targetLineEnding">If targetLineEnding is null, Environment.NewLine is used.</param> | |
| /// <exception cref="ArgumentOutOfRangeException">Unknown target line ending character(s).</exception> | |
| /// <returns>Lines normalized.</returns> | |
| /// <remarks> | |
| /// https://jonlabelle.com/snippets/view/csharp/normalize-line-endings | |
| /// </remarks> |
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
| git branch | Select-String -Pattern "^* dev$" -NotMatch | foreach { $_ -replace "^ ", "" } | foreach { git branch -d $_ } |
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
| git branch -r | Select-String -Pattern "->" -NotMatch | Select-String -pattern "^ origin/" | foreach { $_ -replace '^ origin/', '' } | Foreach { git checkout $_ } |