Skip to content

Instantly share code, notes, and snippets.

View cameronfletcher's full-sized avatar

Cameron Fletcher cameronfletcher

View GitHub Profile
@cameronfletcher
cameronfletcher / InstrumentService.cs
Last active April 29, 2020 08:41
Alexandria Product Universe
namespace Alexandria
{
using System;
using System.Collections.Generic;
public sealed class InstrumentService
{
public static class Venues
{
public const string Unspecified = "__unspecified";
@cameronfletcher
cameronfletcher / _ironclad.settings
Last active April 3, 2019 07:44
Ironclad configuration options
appsettings.json Environment variables Command line arguments Comments
================ ===================== ====================== ========
server { Mandatory section.
database SERVER__DATABASE --server:database (secret) Mandatory. Specifies the connection string for the database.
issuer_uri SERVER__ISSUER_URI --server:issuer_uri Optional. Specifies the issuer URI to use for ironclad. Defaults to the URI from the request.
respect_x_forwarded_for_headers SERVER__RESPECT_X_FORWARDED_FOR_HEADERS --server:respect_x_forwarded_for_headers
@cameronfletcher
cameronfletcher / Program.cs
Created April 12, 2016 06:10
Car Tracker Application
namespace CarTracker
{
using System;
using System.Linq;
public class Application
{
public static void Main()
{
new Application().Run();
@cameronfletcher
cameronfletcher / Registration.cs
Last active April 11, 2016 18:20
A C#.NET value object implementation of UK car registration using dddlib
namespace dddlib.Playground.DomainES
{
using System.Collections.Generic;
using System.Linq;
// LINK (Cameron): http://en.wikipedia.org/wiki/Vehicle_registration_plates_of_the_United_Kingdom,_Crown_dependencies_and_overseas_territories
public class Registration : ValueObject<Registration>
{
private static readonly Dictionary<char, string> RegistrationAreas = new Dictionary<char, string>
{