BenchmarkDotNet=v0.13.0, OS=Windows 10.0.18363.1556 (1909/November2019Update/19H2)
Intel Core i7-8665U CPU 1.90GHz (Coffee Lake), 1 CPU, 8 logical and 4 physical cores
.NET SDK=5.0.202
[Host] : .NET 5.0.5 (5.0.521.16609), X64 RyuJIT
DefaultJob : .NET 5.0.5 (5.0.521.16609), X64 RyuJIT
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 Spectre.Console; | |
for (var i = 10; i >= 1; i--) | |
{ | |
AnsiConsole.MarkupLine($"Dado que n é igual a [yellow]{i:00}[/] então [blue]Alice[/] {(FibonacciTree.DoAliceWins(i) ? "[green]vence[/]" : "[red]perde[/]")}"); | |
} | |
public record Node(int Value, Node? Left = null, Node? Rigth = null) | |
{ | |
public static explicit operator int(Node node) |
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 SharpSvn; | |
using System.Collections.ObjectModel; | |
string repositoryUrl = "url_do_repositorio"; | |
string trunkPath = "/trunk"; | |
string tagPath = "/tags/tag_name"; | |
using (SvnClient client = new SvnClient()) | |
{ | |
// Obtém os IDs dos últimos 5 commits no trunk |
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 System; | |
using System.Diagnostics.CodeAnalysis; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
var person = new Person("Alberto", "JobInfo", new JobInfo("CSF", "Software Architect")); | |
var serializeOptions = new JsonSerializerOptions(); | |
serializeOptions.Converters.Add(new BaseInfoConverter()); |
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 Microsoft.EntityFrameworkCore.Infrastructure; | |
using Microsoft.EntityFrameworkCore.Migrations; | |
using Microsoft.EntityFrameworkCore.Migrations.Operations; | |
using Microsoft.EntityFrameworkCore.Migrations.Operations.Builders; | |
using System; | |
namespace ConsoleApp1.Migrations | |
{ | |
public partial class Initial : Migration | |
{ |
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 System; | |
namespace RemoveLater | |
{ | |
[MemoryDiagnoser] | |
public class FormatarCpf | |
{ | |
private string _cpf; |
Flutter PR: flutter/flutter#59631
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
#requires -Version 2 -Modules posh-git | |
function Write-Theme { | |
param( | |
[bool] | |
$lastCommandFailed, | |
[string] | |
$with | |
) |
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 System.IO; | |
using System.Text.RegularExpressions; | |
namespace ManyBenchmarks | |
{ | |
public static class Extensions | |
{ | |
public static string RegexReplace(this string str, string pattern, string replacer) | |
=> Regex.Replace(str, pattern, replacer); |
- https://stackoverflow.com/questions/8996194/simulate-a-directshow-webcam
- https://github.com/CatxFish/obs-virtual-cam
- https://alax.info/blog/1626
- https://stackoverflow.com/questions/8557723/virtual-webcam-input-as-byte-stream
- https://stackoverflow.com/questions/7870843/how-to-use-directshow-filter-as-a-live-input-for-expression-encoder-4
virtual directshow device
NewerOlder