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.Buffers; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using ConverterTest; | |
namespace MyBenchmarks | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) |
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)] |
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
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.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 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
# 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
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
public abstract class BaseImplementation | |
{ | |
public abstract void GoToCut(MiniMachine m, Cut cut, bool isScanning); | |
public abstract void CutMe(MiniMachine m, Cut cut); | |
public abstract void ScanMe(MiniMachine m, Cut cut); | |
} | |
public interface ICuttingImpl |
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
image: mcr.microsoft.com/dotnet/core/sdk:3.1 | |
stages: | |
- build | |
- test | |
build: | |
stage: build | |
script: | |
- cd tortest2 | |
- dotnet restore scraperTest.sln |
NewerOlder