Skip to content

Instantly share code, notes, and snippets.

View jrnail23's full-sized avatar

James Nail jrnail23

View GitHub Profile
@jrnail23
jrnail23 / aws-theme.json
Last active May 1, 2024 02:18
Structurizr Theme
{
"name": "AWS",
"description": "This theme includes element styles with icons for AWS services, based upon the AWS Architecture Icons (https://aws.amazon.com/architecture/icons/).",
"elements": [
{
"tag": "MySQL",
"stroke": "#2e27ad",
"color": "#2e27ad",
"icon": "https://static.structurizr.com/themes/amazon-web-services-2023.01.31/Res_Amazon-Aurora-MySQL-Instance_48_Light.png"
},
@jrnail23
jrnail23 / SketchSystems.spec
Last active November 10, 2021 05:03
My Awesome Sketch
My Awesome Sketch
First State
some event -> Second State
Second State
@jrnail23
jrnail23 / diff.js
Created July 6, 2017 23:48
objectDiff in Ramda
// https://github.com/ramda/ramda/wiki/Cookbook#diffobjs---diffing-objects-similar-to-guavas-mapsdifference
const groupObjBy = R.curry(R.pipe(
// Call groupBy with the object as pairs, passing only the value to the key function
R.useWith(R.groupBy, [R.useWith(R.__, [R.last]), R.toPairs]),
R.map(R.fromPairs)
))
const objectDiff = R.pipe(
R.useWith(R.mergeWith(R.merge), [R.map(R.objOf('leftValue')), R.map(R.objOf('rightValue'))]),
groupObjBy(R.cond([
@jrnail23
jrnail23 / AutofacShortBusExploratoryTests
Last active January 1, 2016 21:19
Exploratory tests to demonstrate differences in ShortBus.Autofac before and after pull-request 17 (https://github.com/mhinze/ShortBus/pull/17).
using System;
using Autofac;
using NUnit.Framework;
using ShortBus.Autofac;
namespace ShortBus.Tests.Example
{
[TestFixture]
public class AutofacExploratoryTests
{