File => Attach To Process, pick devenv.exe
.symfix
.reload
.loadby sos clr
| // This F# dojo is directly inspired by the Digit Recognizer | |
| // competition from Kaggle.com: | |
| // http://www.kaggle.com/c/digit-recognizer | |
| // The datasets below are simply shorter versions of | |
| // the training dataset from Kaggle. | |
| // 0. Load data files from the following location: | |
| // http://brandewinder.blob.core.windows.net/public/digitssample.csv | |
| // http://brandewinder.blob.core.windows.net/public/digitscheck.csv |
| namespace Topshelf | |
| [<AutoOpen>] | |
| module Topshelf = | |
| open System | |
| open Topshelf.HostConfigurators | |
| open Topshelf.Runtime | |
| let configureTopShelf f = |
| using System; | |
| using System.Collections.Generic; | |
| using System.Collections.Specialized; | |
| // As opposed to magic validation libraries that rely on reflection and attributes, | |
| // applicative validation is pure, total, composable, type-safe, works with immutable types, and it's easy to implement. | |
| public abstract class Result<T> { | |
| private Result() { } |
| public class Server | |
| { | |
| private readonly NetMQContext _context; | |
| private readonly string _id; | |
| public Server(NetMQContext context, string id) | |
| { | |
| _context = context; | |
| _id = id; | |
| } |
| apt-get install -y wget build-essential gettext autoconf automake libtool | |
| wget http://download.mono-project.com/sources/mono/mono-3.2.3.tar.bz2 | |
| bunzip2 -df mono-3.2.3.tar.bz2 | |
| tar -xf mono-3.2.3.tar | |
| cd mono-3.2.3 | |
| ./configure --prefix=/usr/local; make; make install | |
| rm -rf /tmp/* | |
| apt-get remove --purge wget build-essential gettext autoconf automake libtool |
| Add-Type -AssemblyName presentationframework | |
| [xml]$XAML = @' | |
| <Window | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| Title="MainWindow" Height="100" Width="20"> | |
| <StackPanel> | |
| <TextBox Name="textWeather" /> | |
| <Button Name="buttonGet" Content="Get"/> |
| // http://clojure.com/blog/2012/05/08/reducers-a-library-and-model-for-collection-processing.html | |
| // original by Nick Palladinos: http://fssnip.net/ip | |
| #r "FSharp.PowerPack.Parallel.Seq.dll" | |
| module Reducer = | |
| open System | |
| open System.Text | |
| open System.Collections.Generic | |
| open System.Linq |
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Net; | |
| namespace EventStoreService | |
| { | |
| public class EventStoreService | |
| { |
| /** | |
| * Koa middleware for Swagger Framework. | |
| */ | |
| 'use strict'; | |
| /** | |
| * Initialize a new `Koa`. | |
| * | |
| * @param {Framework} framework |