Snippets for http://fagner.co/2016/01/02/Defining-cross-cutting-concerns-using-the-MediatR-library/
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
| // | |
| // --------- Model --------- | |
| // | |
| type Details = | |
| { Name: string | |
| Description: string } | |
| type Item = | |
| { Details: Details } |
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 System; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| namespace GenericFSM { | |
| public class FSM<T> where T : struct, IConvertible { | |
| public T State { get; private set; } |
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 System; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.IO.MemoryMappedFiles; | |
| using System.Runtime.CompilerServices; | |
| using System.Threading.Tasks; | |
| namespace FileAnalyzer | |
| { | |
| public static unsafe class NativeRecord |
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
| param($installPath, $toolsPath, $package, $project) | |
| $projectFullName = $project.FullName | |
| Write-Host "Copying Docs folder to the root of the solution: $projectFullName" | |
| $fileInfo = new-object -typename System.IO.FileInfo -ArgumentList $projectFullName | |
| $projectDirectory = $fileInfo.DirectoryName | |
| $sourceDirectory = "$installPath\docs" | |
| Write-Host $sourceDirectory |
Community
Cheatsheets
- GenServer Cheatsheet by Benjamin Tan Wei Hao
Books
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 System; | |
| namespace Example | |
| { | |
| public abstract class ExecutionResult | |
| { | |
| protected ExecutionResult(Guid aggregateId, Guid commandId, DateTime executedOn) | |
| { | |
| AggregateId = aggregateId; | |
| CommandId = commandId; |
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
| stages: | |
| - build | |
| - publish | |
| .build: &build_template | |
| stage: build | |
| image: microsoft/dotnet:2.1-sdk-alpine | |
| cache: | |
| key: "$CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME" | |
| paths: |
Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.
This is just a picture of this link from March 2, 2019
Originally, I had included some other solution
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
| @echo off | |
| :: change the path below to match your installed version | |
| SET WebStormPath=C:\Program Files\JetBrains\WebStorm 2017.2.2\bin\webstorm64.exe | |
| echo Adding file entries | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f | |
