Skip to content

Instantly share code, notes, and snippets.

open System
type Choice = Rock | Scissors | Paper
type RoundResult = WinRound | TieRound | LoseRound
let roundResult = function
| Rock, Rock | Scissors, Scissors | Paper, Paper -> TieRound
| Rock, Scissors | Scissors, Paper | Paper, Rock -> WinRound
| Rock, Paper | Scissors, Rock | Paper, Scissors -> LoseRound
public abstract class PersistentConnection
{
public virtual void Initialize(IDependencyResolver resolver);
public bool Authorize(IRequest request);
protected virtual TraceSource Trace { get; } }
protected IProtectedData ProtectedData { get; private set; }
@StachuDotNet
StachuDotNet / gist:b291a049df0f3761f4bc
Last active August 29, 2015 14:23
Wanted to make sure I can consistently do my 5x5 workout in under an hour. Of course F# is needed for the task!
type event = { text : string; minutes: double }
type exercise = {
text : string
setNum : int
setupTime : double
setTime : double
restTime : double
}
module CubeSolver
// Represent the state of a Rubik's Cube
type CubeState =
{ EdgePositions : int array
EdgeFlips : int array
CornerPositions : int array
CornerTwists : int array }