Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben Taylor bentayloruk

View GitHub Profile
@bentayloruk
bentayloruk / SleepingGame.fs
Created Sep 15, 2018
Poppy Graham's Sleeping Game
View SleepingGame.fs
open System
open System
open System.ComponentModel
let readLine () =
Console.ReadLine().ToLower()
let exit () =
printfn "\r\nByyyyyyyyyyeeeeeeeeeeeeeee zzzzzzzzzzzzzzzzzzzz\r\n"
0
View AmazingElmInsight.md
View reactquerybuilder.fs
module ReactQueryBuilder
open Fable.Core
open Fable.Import
open Fable.Import.React
open Fable.Core.JsInterop
open Fable.Helpers.React.Props
open System
// TODO
View IForget.fs
// Safely get Some head of Seq or None.
let maybeHead = someSeq |> Seq.tryPick Some
@bentayloruk
bentayloruk / Lucene.md
Created Apr 13, 2015
Lucene.NET Notes
View Lucene.md
View idiomaticjsonserialiser.fs
namespace Newtonsoft.Json.Converters
open Microsoft.FSharp.Reflection
open Newtonsoft.Json
open System
type IdiomaticDuConverter() =
inherit JsonConverter()
[<Literal>]
@bentayloruk
bentayloruk / DefaultParameterValueFixupFilter.fs
Created Mar 23, 2015
ActionFilter for ASP.NET Web API DefaultParameterValue support in F#
View DefaultParameterValueFixupFilter.fs
namespace System.Web.Http
open System.Reflection
open System.Web.Http.Filters
open System.Web.Http.Controllers
open System.Runtime.InteropServices
/// Responsible for populating missing action arguments from DefaultParameterValueAttribute values.
/// Created to handle this issue https://github.com/aspnet/Mvc/issues/1923
/// Note: This is for later version of System.Web.Http but could be back-ported.
@bentayloruk
bentayloruk / ZoneGroupTopology.fs
Last active Aug 29, 2015
One of many Sonos services in the F# type system
View ZoneGroupTopology.fs
namespace Peelio.ZonePlayer.ZoneGroupTopology
open System
open System.Linq
open System.Xml.Linq
open Peelio
/// Union types for those state vars with a set of allowed values.
type A_ARG_TYPE_UpdateType = | All | Software
with
You can’t perform that action at this time.