Recent snippets

  • Walkthrough: Creating an Asynchronous HTTP Handler

    The Microsoft tutorial Walkthrough: Creating an Asynchronous HTTP Handler did not describe how to use IHttpAsyncHandler from F#.
    It was also a bit complicated, because it did not show how to do it from Visual Studio. Here is the Visual Studio F# version. 1. Create empty ASP.NET Web Application. Call it FSharpHttpAsyncHandler. 2. Add a F# library project to the solution. Call it FSharpHttpAsyncHandler.Lib. 3. Add the following code to Library1.fs in FSharpHttpAsyncHandler.Lib 4. Add a reference to System.Web in FSharpHttpAsyncHandler.Lib 5. Add a reference to FSharpHttpAsyncHandler.Lib in FSharpHttpAsyncHandler. 6. Add the following to Web.config in FSharpHttpAsyncHandler. 7. In the Web tab of the project properties of FSharpHttpAsyncHandler, set Start url to http://localhost://whatever.SampleAsync 8. Run debug.

    1 people like this

    Posted: 6 days ago by Erling Hellenäs

  • FTPS download and upload a file

    FTPS = SSL encrypted FTP. SFTP = FTP over SSH.

    3 people like this

    Posted: 9 days ago by Tuomas Hietanen

  • ViewModelBase with strongly typed PropertyChanged subscription

    A base class for your view models with methods that take a code quotation of a property to subscribe to, and makes use of IObservable for strongly typed subscriptions to PropertyChanged for this property. You might want to use System.Reactive and insert `Observable.DistinctUntilChanged` after `Observable.map`.

    2 people like this

    Posted: 17 days ago by Christer van der Meeren

  • SFTP with SSH.Net

    SFTP with SSH.Net

    1 people like this

    Posted: 24 days ago by Tuomas Hietanen

  • Azure Cosmos DB - Graph get started

    Translation of the Azure Cosmos DB Graph-get-started sample project (https://github.com/Azure-Samples/azure-cosmos-db-graph-dotnet-getting-started/tree/master/GraphGetStarted) A Cosmos DB account must first be created e.g. via the Azure Portal & from these the endpoint & authorization key are retrieved. Given these, the script creates: (i) Document Client (ii) Database (iii) Graph (aka Document Collection). From Gremlin expressions (strings) the command CreateGremlinQuery creates queries (IDocumentQueries) that can be executed to read from or modify the graph.

    2 people like this

    Posted: 1 month ago by roguetrainer

  • The Eff Monad via delimited continuations

    The Eff Monad via delimited continuations, based on http://kcsrk.info/papers/eff_ocaml_ml16.pdf.

    1 people like this

    Posted: 1 month ago by NIck Palladinos

Popular snippets

Snippets by tags

xml (12) agent (20) kata (17) f# (42) silverlight (21) recursion (26) http (15) computation builder (14) quotations (17) staging (18) seq (50) regex (12) parsing (22) lazy (18) learning f# (16) string (18) tryfsharp (48) array (18) tutorial (17) game (30)

View all...

Database contains 2175 snippets out of which 1497 is public.