Snippets created by Jack Fox

  • unit test in VS11 beta

    Demo F# unit test in VS11 beta. In VS 2010 unit testing requires a hack whereby you add a c# test project to your solution and add to that project a linked item to the DLL of the F# project with the test methods.

    6 people like this

    Posted: 12 years ago by Jack Fox

  • Heterogeneous Parallel Async

    Perform parallel Async returning heterogeneous types. (The solution presented here is based on a gist sent to me by [Anton Tayanovskyy](http://t0yv0.blogspot.com/ "Anton Tayanovskyy"), Twitter: [@t0yv0](https://twitter.com/t0yv0).)

    6 people like this

    Posted: 10 years ago by Jack Fox

  • Bayesian Monte Carlo of Let's Make a Deal

    This code illustrates Bayes' Theorem in action on the Let's Make a Deal problem (aka Monty Hall Problem), which several authors have used to illustrate Bayes' Theorem. (It's easy to search the internet for further explanation.) Run with the audit option to audit up to the first 100 games. Running without audit is faster and can simulate a couple billion games.

    5 people like this

    Posted: 11 years ago by Jack Fox

  • Authenticate to Azure with Service Principal

    Authenticate to Azure with Service Principal //https://docs.microsoft.com/en-us/dotnet/azure/dotnet-sdk-azure-authenticate?view=azure-dotnet#mgmt-auth

    0 people like this

    Posted: 6 years ago by Jack Fox