Recent snippets

  • BTC transfers with NBitcoin

    Bitcoin transfers. I'm not responsible if your money gets lost. Have fun!

    1 people like this

    Posted: 17 days ago by Tuomas Hietanen

  • WPF generic value converter for Discriminated Unions

    A generic value converter for discriminated unions, it allows to use a single converter for any discriminated union along with facilitating the creation of new ones with a default option value for when an incompatible union case is provided. Large part of this snippet uses as a base, all credit on the ConverterBase goes to him, one of the authors also has a new version of it

    1 people like this

    Posted: 28 days ago by Micael Morais

  • Alternative to using spaces in discriminated union cases

    This shows an alternative to using spaces in the discriminated union cases, which makes it harder to write in code, and tends to be needed when interoping with the likes of WPF or any other element that uses the ToString of the union case to display its value. Also useful as an alternative to using special characters like á or ç which make it harder to work with colleagues that don't have keyboards with those characters. Uses code from snippet

    0 people like this

    Posted: 28 days ago by Micael Morais

Popular snippets

  • Composing a list of functions

    Composition of functions in F# is easily achieved by using the >> operator. You can also chain an arbitary amount of functions (represented as a list or sequence) together by folding the list/seq with >>. [More formally: the set of endomorphisms 'a -> 'a forms a monoid with the binary, associative operator ">>" (or "<<") and the neutral element "id".]

    79 people like this

    Posted: 8 years ago by Novox

  • Units of Measure

    Show's how to define units of measure to add stronger typing to your numerical functions.

    74 people like this

    Posted: 8 years ago by Robert Pickering

  • get the list of LAN Sql servers

    get the list of ethernet sql servers

    89 people like this

    Posted: 7 years ago by nCdy

Snippets by tags

fold (19) tutorial (17) dsl (22) async (95) xml (12) lists (13) web (24) math (32) list (50) regex (15) sequence (30) json (14) parsing (22) recursion (28) http (15) reflection (18) sequences (47) lazy (19) pattern matching (13) silverlight (22)

View all...

Database contains 2278 snippets out of which 1551 is public.