Recent snippets

Popular snippets

  • Minimal XML DSL

    This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.

    373 people like this

    Posted: 13 years ago by Blake Coverett

  • get the list of LAN Sql servers

    get the list of ethernet sql servers

    90 people like this

    Posted: 13 years ago by nCdy

  • Break sequence into n-element subsequences

    I'm working on parallel computations and I thought it would be useful to break work into chunks, especially when processing each element asynchronously is too expensive. The neat thing is that this function is general even though motivation for it is specific. Another neat thing is that this is true lazy sequence unlike what you'd get if you used Seq.groupBy. There are three versions for your enjoyment.

    73 people like this

    Posted: 13 years ago by Dmitri Pavlenkov

  • Units of Measure

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

    75 people like this

    Posted: 13 years ago by Robert Pickering

  • Composable WCF Web API using Async

    A functional wrapper around the new WCF Web APIs (http://wcf.codeplex.com/). Composition is achieved through the use of the HttpRequestMessage -> Async signature. Pushing the app calls in the MessageHandler intercepts all requests and allows you to take control at the earliest point possible before operation selection occurs. Extending this slightly to call the innerChannel's SendAsync would allow you to create a middleware layer that would work both with this and other, normal Web API services.

    57 people like this

    Posted: 13 years ago by Ryan Riley

  • Adapter pattern

    Invoke the methods from incompatible types

    110 people like this

    Posted: 13 years ago by Tao Liu

Snippets by tags

game (32) math (35) fold (22) reflection (19) agent (20) fparsec (15) f# (43) parsing (28) html (15) pattern matching (15) dsl (23) kata (17) computation expression (15) quotations (21) collections (16) lazy (20) recursion (33) tutorial (17) list (56) web (29)

View all...

Database contains 3193 snippets out of which 1710 is public.