Skip to content

Instantly share code, notes, and snippets.

View dawedawe's full-sized avatar

dawe dawedawe

View GitHub Profile
@dawedawe
dawedawe / Dogma.fs
Created April 28, 2021 18:36
The (incorrect) central dogma of molecular biology (DNA -> RNA -> protein) modeled in F#
namespace Dogma
module DNA =
type Nucleobases =
| A // Adenine, a Purine
| C // Cytosine, a Pyrimidine
| G // Guanine, a Purine
| T // Thymine, a Pyrimidine
@dawedawe
dawedawe / tortillaflow.md
Last active July 24, 2023 08:31
F# Advent Calender 2022

Tortilla Flow

Given the following scenario:

You're an F# developer from Germany.
You fall in love with a Mexican girl ❤️.
You need to learn your way around the culture, the language and, of course, the outstanding food.
In particular, you need to learn all the twisty paths a tortilla can take.

How do you solve this?

@dawedawe
dawedawe / tortilla_ce.dib
Last active December 8, 2022 23:04
Tortilla CE
module Model =
open System.Collections.Generic
type Feature =
| Empty
| Meat
| MeatStrips
| NoMeatStrips
| Cheese
@dawedawe
dawedawe / gettimes.fsx
Last active January 14, 2024 20:25
QuickAndDirtyTcBenchmark
#r "nuget: CliWrap"
open System.Threading
open CliWrap
let baselineFscPath =
@"C:\Users\schae\src\fsharp_main\artifacts\bin\fsc\Release\net8.0\fsc.dll"
let hypothesisFscPath =
@"C:\Users\schae\src\fsharp\artifacts\bin\fsc\Release\net8.0\fsc.dll"