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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net7.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
<ItemGroup> |
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; | |
using System.Security.Cryptography; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
BenchmarkRunner.Run<MonitorCompare>(); | |
static class Log { |
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
// For more information see https://aka.ms/fsharp-console-apps | |
open System | |
open System.IO | |
open System.Text.RegularExpressions | |
// assumption is folders to compare are in the same path and they have the same sub-folders hierarchy | |
let basePath = "" // root path | |
let targetFolders = [] // folders to compares | |
let latterPath = "" // sub paths in folders to compare |
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
open System | |
type metadata = string | |
type NodeBody = { | |
Id : int | |
Parent : int | |
Metadata : string | |
} | |
and InvertedNode = | |
| IChild of NodeBody |
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
module Math where | |
import Text.Parsec | |
import Text.Parsec.String | |
data Expr | |
= Num Integer | |
| Op Op Expr Expr | |
deriving Show |
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.Threading.Tasks; | |
using Microsoft.JSInterop; | |
using System.Text.Json; | |
namespace ClientSide.Services | |
{ | |
public interface ILocalStorage | |
{ | |
Task SaveAsync<T>(string name, T item) where T : class; | |
Task DeleteAsync(string name); |