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
public abstract class TestBase | |
{ | |
protected abstract Task Impl(); | |
protected abstract void Impl2(); | |
} | |
public class Test : TestBase | |
{ | |
protected override Task Impl() | |
{ |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
open System | |
type TheValue<'a> = | |
| Value of 'a | |
| None | |
let ReadInt() = | |
match Console.ReadLine() |> Int32.TryParse with | |
| true , v -> Value v |
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.IO; | |
using System.Runtime.Serialization; | |
using Google.Protobuf.Reflection; | |
using ProtoBuf; | |
using ProtoBuf.Reflection; | |
namespace nativeCheck | |
{ | |
[DataContract] |
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
open BenchmarkDotNet.Attributes | |
open BenchmarkDotNet.Running | |
type Tree<'a when 'a : comparison> = | |
| Node of 'a * Tree<'a> * Tree<'a> | |
| Empty | |
let rec insert newValue (tree : Tree<'a>) = |
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.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using BenchmarkDotNet.Attributes; | |
namespace chapsasParallel |
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
source https://nuget.org/api/v2 | |
storage:none | |
nuget FSharp.Core redirects: force | |
nuget Saturn | |
nuget System.Net.NetworkInformation | |
nuget Thoth.Json.Net | |
nuget Thoth.Json.Giraffe | |
nuget Fable.Core | |
nuget Fable.Browser.Dom |
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
module Server.BikeScreen | |
open System | |
open FSharp.Control.Tasks | |
open Shared | |
open BikeAPI | |
open Security | |
open Database | |
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
open Microsoft.FSharp.Core | |
type FizzBuzzResult = | |
| Unhadnled of int | |
| Handled of string | |
let isDivisiblyBy n divisor = | |
n % divisor = 0 | |
let handle divisor label n = |
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.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
namespace ParserTest; | |
public static class Parser | |
{ | |
[InterpolatedStringHandler] | |
[StructLayout(LayoutKind.Auto)] |