Skip to content

Instantly share code, notes, and snippets.

View WillEhrendreich's full-sized avatar
🦔
Have you tried fsharp?

Will Ehrendreich WillEhrendreich

🦔
Have you tried fsharp?
View GitHub Profile
@jonas1ara
jonas1ara / WebServer.fsx
Last active March 10, 2026 07:27
Simple web server in F#
open System.Net
open System.Net.Sockets
open System.IO
open System.Text.RegularExpressions
open System.Text
/// A table of MIME content types.
let mimeTypes =
dict [".html", "text/html";
".htm", "text/html";
@isaacabraham
isaacabraham / aps.fsx
Last active February 3, 2025 04:01
Active Patterns
open System
let s = "Card 1: 41 48 83 86 17 | 83 86 6 31 17 9 48 53"
// challenge - split above into values we can reason about e.g.
type Card = {
Id : int // 1
Winning : int list // 41 48 83 86 17
Ticket : int list // 83 86 6 31 17 9 48 53
}