Skip to content

Instantly share code, notes, and snippets.

View costr's full-sized avatar
📈

Adam Costenbader costr

📈
View GitHub Profile
@costr
costr / Resume.md
Last active October 7, 2021 15:18
Adam Costenbader's Resume Gist

Objective

To grow as a software architect, developer, team member, and leader, in a challenging and caring environment


Work Experience

KEYHOLE SOFTWARE INC. – Kansas City, KS (Remote)

TEAM LEAD / CONSULTANT / FULL-STACK DEVELOPER       August 2016 - Present

@costr
costr / BaseTestMethodSnippet.snippet
Last active November 15, 2021 05:11
Test Method Snippet
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Test Method - Base</Title>
<Author>Adam Costenbader</Author>
<Description>Use to define the base structure of a test method.</Description>
<Shortcut>btest</Shortcut>
</Header>
<Snippet>
@costr
costr / TokenGenerationTable.Example.sql
Last active June 17, 2022 22:38
Creating Unique Token At Table Level
CREATE TABLE [dbo].[tokens]
(
[id] INT IDENTITY(1,1) NOT NULL,
[token] NCHAR(6) NOT NULL CONSTRAINT DF_subscribertokens_token DEFAULT CONVERT(nvarchar(6),LEFT(REPLACE(NEWID(),'-',''),6)),
[created] DATETIME NOT NULL CONSTRAINT DF_subscribertokens_created DEFAULT getutcdate(),
[notes] VARCHAR(MAX) NULL,
[deactivated] BIT NOT NULL CONSTRAINT DF_subscribertokens_deactivated DEFAULT 0,
CONSTRAINT [PK_tokens] PRIMARY KEY CLUSTERED ([id] ASC),
CONSTRAINT UC_tokens_token UNIQUE (token)
@costr
costr / Result.cs
Created July 20, 2023 13:43
Result Pattern Class
public class Result<T>
{
private readonly T _value;
public T Value { get { return _value; } }
private List<string> _errors = new List<string>();
public IReadOnlyCollection<string> Errors => _errors;
private List<Exception> _exceptions = new List<Exception>();
public IReadOnlyCollection<Exception> Exceptions => _exceptions;
@costr
costr / gist:f1f85dd25250adede7f902c5a00a5733
Created November 7, 2023 16:41
EF DbContext Console Logging Query
myDBContext.Database.Log = message => System.Diagnostics.Debug.WriteLine(message);