This project uses TUnit as the testing framework. All tests are located in tests/MyLib.Tests/.
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
| Console.WriteLine("Hello, World"); |
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
| Console.WriteLine("Hello, C#!"); |
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 fetch --prune --prune-tags |
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
| #Requires -RunAsAdministrator | |
| #Requires -Version 5.0 | |
| # requires Windows 10 | |
| Get-EtwTraceProvider | Select-Object SessionName, Guid | sort SessionName | |
| # as Markdown | |
| <# | |
| #Requires -RunAsAdministrator | |
| $result = Get-EtwTraceProvider | sort SessionName | |
| $result | %{"|Name|GUID|";"|----|----|";}{"|$($_.SessionName)|$($_.Guid)|"} | |
| #> |
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
| BenchmarkRunner.Run<DistanceBench>(); | |
| [ShortRunJob(RuntimeMoniker.Net90)] | |
| [ShortRunJob(RuntimeMoniker.Net10_0)] | |
| [MemoryDiagnoser] | |
| public class DistanceBench | |
| { | |
| [Params(10_000, 100_000, 1_000_000)] | |
| public int PointCount { get; set; } | |
| private Point[] _points = default!; |
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
| # https://support.google.com/a/answer/6214622?hl=en#zippy=%2Coption-dns | |
| # CNAME to restrict.youtube.com | |
| www.youtube.com | |
| m.youtube.com | |
| youtubei.googleapis.com | |
| youtube.googleapis.com | |
| www.youtube-nocookie.com |
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
| // Set invariant Culture to get none-localized date format, should be US style. | |
| System.Globalization.CultureInfo.CurrentCulture = CultureInfo.InvariantCulture; | |
| // See format with https://learn.microsoft.com/ja-jp/dotnet/standard/base-types/standard-date-and-time-format-strings | |
| DateTime.Now.Dump("None"); // MM/dd/yyyy HH:mm:ss | |
| DateTime.Now.ToLongDateString().Dump("ToLongDateString"); // DDD dd/MM/yyyy | |
| DateTime.Now.ToString("o").Dump("o"); // yyyy-MM-ddTHH:mm:ss.SSSSSS+O | |
| DateTime.Now.ToString("d").Dump("d"); // dd/MM/yyyy | |
| DateTime.Now.ToString("D").Dump("D"); // DDD, dd MM yyyy | |
| DateTime.Now.ToString("f").Dump("f"); // DDD, dd MM yyyy HH:mm |
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
| # stop correct for LLM | |
| unsetopt correct_all | |
| unsetopt correct | |
| export ENABLE_CORRECTION="false" |
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
| BenchmarkRunner.Run<Bencmarks>(); | |
| [HideColumns(Column.Job, Column.RatioSD, Column.AllocRatio)] | |
| [ShortRunJob(RuntimeMoniker.Net80)] | |
| [ShortRunJob(RuntimeMoniker.Net90)] | |
| [MemoryDiagnoser] | |
| [ReturnValueValidator(failOnError: true)] | |
| public class Bencmarks | |
| { | |
| private List<Unit> _list; |
NewerOlder