Skip to content

Instantly share code, notes, and snippets.

using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace MarsRover.Tests
{
public class UnitTest1
{
private readonly MarsRover marsRover;

Keybase proof

I hereby claim:

  • I am quezlatch on github.
  • I am quezlatch (https://keybase.io/quezlatch) on keybase.
  • I have a public key ASAu5oDJ1NAQCZDzoZsFYGlFORjT_BovWr6eVc7DWbapDgo

To claim this, I am signing this object:

@quezlatch
quezlatch / calculateRomanNumeralValue.fs
Created May 4, 2018 17:01
calculate the integer value of a roman numeral
module Tests
open Xunit
let numeralToValue =
[
'I',1
'V',5
'X',10
'L',50
@quezlatch
quezlatch / WordController.cs
Created October 14, 2016 08:29
example .net controller than show how a hexagonal domain might be called from the controller (with bonus async)
using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace WebApplication2.Controllers
{
public class WordController : Controller
{
private readonly TaskCompletionSource<ActionResult> _taskCompletionSource = new TaskCompletionSource<ActionResult>();
@quezlatch
quezlatch / fscheckoutkata.fs
Last active November 8, 2015 14:35
f# checkout kata
open Fuchu
type PricingRule =
| Standard of string * int
| Discount of string * int * int * int
let sku =
function
| Standard(sku, _) -> sku
| Discount(sku, _, _, _) -> sku
@quezlatch
quezlatch / SdltCalculator.fs
Last active August 29, 2015 14:10
sdlt calculator in f#
[<ReflectedDefinition>]
module Program
open FunScript
open FunScript.TypeScript
type Band = int * int * int
let sdlt amount =
let thresholdsAndRates =
module CuriousNumbers
open FsUnit
open Xunit
let rec digits = function
| 0 -> []
| x ->
let remainder = x % 10
let next = digits (x / 10)
@quezlatch
quezlatch / build-mono.sh
Last active August 29, 2015 14:03
build mono on ubuntu from source
apt-get -y update
apt-get -y upgrade
apt-get -y install build-essential gettext libgdiplus git autoconf libtool
echo "build llvm"
git clone https://github.com/mono/llvm.git
cd llvm
git checkout mono
./configure -–prefix=/usr/local –-enable-optimized –-enable-targets=x86_64
make
make install