Recent snippets

Popular snippets

  • Project Euler #1

    This snippet is code that solves first Project Euler problem. It finds the sum of all the multiples of 3 or 5 below 1000. Please add other (more efficient, succinct or interesting) solutions to this snippet.

    72 people like this

    Posted: 7 years ago by Eugene Gavrin

  • get the list of LAN Sql servers

    get the list of ethernet sql servers

    89 people like this

    Posted: 7 years ago by nCdy

  • 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".]

    78 people like this

    Posted: 7 years ago by Novox

  • Chain of responsibility

    The following sample wants to make sure the person’s age is between 18 and 65, weight is no more than 200 and tall enough (>120).

    75 people like this

    Posted: 6 years ago by Tao Liu

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

    98 people like this

    Posted: 6 years ago by Tao Liu

  • Project Euler #1

    This snippet is code that solves first Project Euler problem. It finds the sum of all the multiples of 3 or 5 below 1000. Please add other (more efficient, succinct or interesting) solutions to this snippet.

    72 people like this

    Posted: 7 years ago by Eugene Gavrin

Snippets by tags

collections (16) dsl (22) lazy (18) silverlight (21) recursion (27) monad (20) kata (17) computation builder (14) wpf (19) design patterns (18) tryfsharp (48) math (32) http (15) string (19) web (24) algorithms (25) array (19) quotations (17) reflection (18) regex (13)

View all...

Database contains 2206 snippets out of which 1510 is public.