Skip to content

Instantly share code, notes, and snippets.

Tuomas Hietanen Thorium

Block or report user

Report or block Thorium

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Thorium
Thorium / Dockerfile
Last active Aug 29, 2015 — forked from junosuarez/Dockerfile
Dockerfile to start F# Owin project
View Dockerfile
FROM ubuntu:14.04
RUN apt-get -y update
# Install Mono (and fsharp)
RUN apt-get -y install mono-devel autoconf pkg-config make git libtool
RUN git clone https://github.com/fsharp/fsharp
RUN cd fsharp && ./autogen.sh --prefix /usr && make && make install
# Add some files
@Thorium
Thorium / gist:2473882
Created Apr 23, 2012 — forked from forki/gist:1400378
Poor mans type classes
View gist:2473882
// Mimic type classes with additional param
type 'a Num = {
zero: 'a
add: 'a -> 'a -> 'a
mult: 'a -> 'a -> 'a
fromInteger: int -> 'a }
let intNum = {
zero = 0
@Thorium
Thorium / gist:2416591
Created Apr 18, 2012 — forked from mattpodwysocki/gist:165605
IObservable<T> is close to Async<T>, so why not: F# obs { ... } as async { ... }
View gist:2416591
#I @"C:\Tools\System.Reactive"
#r "System.Core.dll"
#r "System.Reactive.dll"
type observable<'a> = System.Collections.Generic.IObservable<'a>
type observer<'a> = System.Collections.Generic.IObserver<'a>
module Observable =
open System
open System.Linq
You can’t perform that action at this time.