Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
The auto-scaling group lost an instance!

Yunier circleupx

:octocat:
The auto-scaling group lost an instance!
View GitHub Profile
@circleupx
circleupx / jsonapi_oas.yml
Created Aug 29, 2020 — forked from naesean/jsonapi_oas.yml
OpenAPI 3.0 schemas that comply with the JSON:API 1.0 specification
View jsonapi_oas.yml
JSONAPIObject:
description: Includes the current JSON:API version for this specification as well as optional meta information
type: object
required:
- version
properties:
version:
type: string
default: '1.0'
example: '1.0'
@circleupx
circleupx / DeleteQueryWithGrammar.cs
Created Aug 24, 2020 — forked from ScottLilly/DeleteQueryWithGrammar.cs
Source code for my "How to build a fluent interface in C#" blog post.
View DeleteQueryWithGrammar.cs
using System.Collections.Generic;
using BuildAFluentInterface.Interfaces;
namespace BuildAFluentInterface
{
public class DeleteQueryWithGrammar : ICanAddCondition, ICanAddWhereValue, ICanAddWhereOrRun
{
private readonly string _tableName;
private readonly List<WhereCondition> _whereConditions = new List<WhereCondition>();
@circleupx
circleupx / extensible.cs
Created Jun 18, 2020
Extensible Object Pattern
View extensible.cs
public class BaseObject : IExtensibleObject<BaseObject>
{
private DateTime _startDate;
private ExtensionCollection<BaseObject> _extensions;
public DateTime StartDate
{
get { return _startDate; }
set { _startDate = value; }
}
You can’t perform that action at this time.