Skip to content

Instantly share code, notes, and snippets.

@adicirstei
adicirstei / WinForm.fsx
Last active April 4, 2022 17:17
Fully reactive UI in F# with observables
open System
open System.Windows.Forms
open System.Drawing
type Action =
| Increment
| Decrement
let form = new Form(Width= 400, Height = 300, Visible = true, Text = "Hello World")
@dmgolubovsky
dmgolubovsky / wkhs.cabal
Created November 1, 2015 21:16
A minimal example of attaching a DOM event handler written in Haskell using Webkit
-- Initial wkhs.cabal generated by cabal init. For further documentation,
-- see http://haskell.org/cabal/users-guide/
name: wkhs
version: 0.1.0.0
-- synopsis:
-- description:
license: PublicDomain
license-file: LICENSE
author: Dmitry Golubovsky
@ayosec
ayosec / content.md
Created July 16, 2012 10:13
Why Lisp macros are cool, a Perl perspective
@AndrewNewcomb
AndrewNewcomb / WebSocketServer.fs
Last active January 9, 2017 18:58
OLD from 2010 ... Updated example of using F# MailboxProcessor against an HTML5 WebSocket (in Google Chrome)
// Example of using F# MailboxProcessor against an HTML5 WebSocket (in Google Chrome)
// taken from http://v2matveev.blogspot.com/2010/04/mailboxprocessors-practical-application.html
// and then modified to work with the revised WebSocket protocol that includes a set of challenge bytes.
// The main changes are in the handshake function.
// Have a look at the http://nugget.codeplex.com for example WebSocket code in C#, on which I based the
// challenge processing code.
open System
open System.IO
open System.Linq