Recent snippets

  • Generate MachineKey for Web.Config

    Creates a valid random machine key to place in your web.config or machine.config file. Useful when using multiple web servers where each web server needs the same machine key for encryption/validation.

    1 people like this

    Posted: 3 months ago by Russ Cam

  • Unfolding Sequences

    Demonstrates how to use unfold to create a sequence of fibonacci numbers

    0 people like this

    Posted: 3 months ago by Dave Yost

  • Web Crawler extensions

    The snippet extends a web crawler from snippet http://fssnip.net/3K. It synchronizes all printing using an additional agent (so printed text does not interleave) and the crawling function returns an asynchronous workflow that returns when crawling completes.

    0 people like this

    Posted: 4 months ago by Tomas Petricek

Popular snippets

  • The Haskell const function

    The const function is simple, but you can use it to make your code more legible. In this example we convert a unary function to a function of arity 2 (that ignores the second argument). Also by using the flip function from Haskell (which is equally easy to define) you can ignore the first argument.

    119 people like this

    Posted: 12 years ago by Alex Muscar

  • Split a list

    Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.

    80 people like this

    Posted: 12 years ago by Dmitri Pavlenkov

  • Asynchronous sequences

    An asynchronous sequence is similar to the seq type, but the elements of the sequence are generated asynchronously without blocking the caller as in Async. This snippet declares asynchronous sequence and uses it to compare two files in 1k blocks.

    109 people like this

    Posted: 12 years ago by Tomas Petricek

Snippets by tags

learning f# (16) computation builder (16) regex (17) array (22) agent (20) lists (14) dsl (23) f# (43) algorithms (25) sequences (48) staging (18) design patterns (18) wpf (20) fparsec (15) reflection (19) http (18) tutorial (17) monad (23) lazy (20) game (32)

View all...

Database contains 3168 snippets out of which 1706 is public.