To unlock these execerises you will need to disabled learning mode.
In Exercism you'll have some exercises to
| #!/usr/bin/env -S dotnet fsi --langversion:preview | |
| (* | |
| * This work (haveibeenpwned.fsx by James Tuley), | |
| * identified by James Tuley, is free of known copyright restrictions | |
| * Source: https://gist.github.com/jbtule/d98faec0abddea3d50180df54c33b617 | |
| * http://creativecommons.org/publicdomain/mark/1.0/ | |
| * | |
| * This script uses the Troy Hunt's HaveIBeenPwned.com range api, to search for passwords, | |
| * without revealing what you are searching for. | |
| * |
| open System | |
| open BenchmarkDotNet.Attributes | |
| open BenchmarkDotNet.Running | |
| open BenchmarkDotNet.Jobs | |
| open FSharp.Control.Tasks.V2 | |
| [<SimpleJob(RuntimeMoniker.NetCoreApp31); MemoryDiagnoser>] | |
| type Test() = | |
| [<Params(100, 1000, 10000)>] |
| /* | |
| CSVReader.ReadCSVFile | |
| Ported from FSharp.Data into C# | |
| Changes by James Tuley 3/3/2020 | |
| * Ported into C# | |
| * Removes recursuion and adds mutation (since no tail call optimizaiton in c#) | |
| Orignal Code: |
| (* | |
| * This work (My Shortest CSV Parser:CsvBasic.fs by James Tuley), | |
| * identified by James Tuley, is free of known copyright restrictions | |
| * Source: https://gist.github.com/jbtule/83e330335b1afc924d508ce49b0927fc | |
| * http://creativecommons.org/publicdomain/mark/1.0/ | |
| *) | |
| module CsvBasic | |
| open System.IO | |
| type SB = System.Text.StringBuilder | |
| [<Struct>] type internal Quote = None | Open | Closed |
To unlock these execerises you will need to disabled learning mode.
In Exercism you'll have some exercises to
| (* | |
| * This work (KeyValue CE for F# 4.7 by James Tuley), | |
| * identified by James Tuley, is free of known copyright restrictions | |
| * Source: https://gist.github.com/jbtule/45284eee325416759c5fcf62dfa54b95 | |
| * http://creativecommons.org/publicdomain/mark/1.0/ | |
| *) | |
| namespace FSharp.Experimental.KeyValueCE | |
| open Microsoft.FSharp.Quotations | |
| open Microsoft.FSharp.Quotations.Patterns |
| #!/usr/bin/env dotnet-script | |
| /* | |
| * This work (haveibeenpwnded.csx by James Tuley), | |
| * identified by James Tuley, is free of known copyright restrictions | |
| * Source: https://gist.github.com/jbtule/7dab1a1031590209bdcfac88ee71cb2b | |
| * http://creativecommons.org/publicdomain/mark/1.0/ | |
| * | |
| * This script uses the Troy Hunt's HaveIBeenPwned.com range api, to search for passwords, | |
| * without revealing what you are searching for. | |
| * |
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace AzureTableStorage.Tests | |
| { | |
| // Start/stop azure storage emulator from code: |
| { | |
| // See https://go.microsoft.com/fwlink/?LinkId=733558 | |
| // for the documentation about the tasks.json format | |
| "version": "0.1.0", | |
| "tasks":[ | |
| { | |
| "taskName": "Build", | |
| "command": "hbmk2", | |
| "isShellCommand": true, | |
| "isBuildCommand": true, |