Recent snippets

Popular snippets

  • Get Stock Quote Data and Historical Stock Prices from Yahoo Finance

    Get Stock Quote Data and Historical Stock Prices from Yahoo Finance.

    234 people like this

    Posted: 8 years ago by Tuomas Hietanen

  • Dynamic operator using Reflection

    Demonstrates how to implement the dynamic operator (?) using .NET Reflection. The implementation supports calling constructors, propreties and methods using simple overload resolution (based on parameter count). It handles instance as well as static members.

    63 people like this

    Posted: 8 years ago by Tomas Petricek

  • ObservableObject

    The ObservableObject type implements the INotifyPropertyChanged interface used in WPF and Silverlight to notify on changes to properties that are bound to a control. Specify property names type safely using F# Quotations, i.e. <@ this.PropertyName @> when invoking the NotifyPropertyChanged method. If you are following the MVVM pattern then your View Model class can inherit from the ObservableObject type.

    59 people like this

    Posted: 8 years ago by Phillip Trelford

  • WPF / SilverLight Converter II

    version 1 is http://fssnip.net/62. This new version support convert from any existing function to a converter function by using composition and pipeline. The convert function is to make the function signature agree to the IValueConverter interface. You can add new functions in the FunctionLibrary module and reuse the class definition to reduce the coding effort. The first sample is to show how to make the converter pipeline work, the second one is a debugger converter used to debug the data binding problem.

    83 people like this

    Posted: 7 years ago by Tao Liu

  • 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

  • Adapter pattern

    Invoke the methods from incompatible types

    102 people like this

    Posted: 8 years ago by Tao Liu

Snippets by tags

tryfsharp (48) json (14) lists (13) computation builder (14) http (15) mailboxprocessor (27) list (51) lazy (19) dsl (22) fparsec (15) parsing (25) game (30) sequences (47) math (32) seq (54) staging (18) pattern matching (13) f# (42) wpf (20) quotations (18)

View all...

Database contains 2345 snippets out of which 1593 is public.