Skip to content

Instantly share code, notes, and snippets.

View iSeiryu's full-sized avatar
:octocat:
Working

Seiryu iSeiryu

:octocat:
Working
View GitHub Profile
@iSeiryu
iSeiryu / csharp-vs-fsharp-pattern-matching.md
Last active May 2, 2024 15:43
C# vs F# pattern matching
// F#

type BodyType = 
    | Sedan
    | SUV

type Vehicle =
    | Bus of riders:int * capacity:int * basePrice:decimal
    | Taxi of riders:int * capacity:int * basePrice:decimal * body:BodyType * fares:int
256: /MS-DOS/v4.0/src/CMD/GRAPHICS/GRCTRL.ASM
212: color
38: black
3: gun
3: firing
225: /MS-DOS/v4.0/src/SELECT/SCROLL.ASM
168: color
56: hook
1: uk
115: /MS-DOS/v4.0/src/SELECT/PANELS.ASM
@iSeiryu
iSeiryu / .editorconfig
Created December 31, 2022 16:57
Example of .editorconfig with Sonar and Roslynator analyzers
root = true
# EditorConfig is awesome: https://EditorConfig.org
# Don't use tabs for indentation.
[*]
indent_style = space
charset = utf-8
end_of_line = lf
[*.{cs,csx}]