Skip to content

Instantly share code, notes, and snippets.

namespace Newtonsoft.Json.Converters
open Microsoft.FSharp.Reflection
open Newtonsoft.Json
open System
type IdiomaticDuConverter() =
inherit JsonConverter()
[<Literal>]
@bentayloruk
bentayloruk / csharp.cs
Last active August 29, 2015 13:56 — forked from ToJans/csharp.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
namespace TDDCoverage
{
public class Order
{
@bentayloruk
bentayloruk / gist:3518432
Created August 29, 2012 20:27
F# Learning - Concat sequences
EnvironmentHelper.fs
let isUnix = System.Environment.OSVersion.Platform = System.PlatformID.Unix
let platformInfoAction (psi:ProcessStartInfo) =
if isUnix && psi.FileName.EndsWith ".exe" then
psi.Arguments <- psi.FileName + " " + psi.Arguments
psi.FileName <- "mono"
ProcessHelper.fs