Skip to content

Instantly share code, notes, and snippets.

View ScottGuymer's full-sized avatar

Scott Guymer ScottGuymer

View GitHub Profile
@ScottGuymer
ScottGuymer / HubExample.cs
Last active October 24, 2015 13:13
SignalR notifications framework example.
using StratComm.Notification.Hubs.Clients;
public class ExampleHub : SubscriptionHub<IHubClient>
{
}
public interface IFileHubClient
{
void Complete();
@ScottGuymer
ScottGuymer / DatabaseUtils.cs
Created October 24, 2015 13:12
Database Utils
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Reflection;
/// <summary>
/// Data Helper methods.
/// </summary>
@ScottGuymer
ScottGuymer / ExampleQuery.cs
Last active May 24, 2022 22:01
Selector pattern for testable linq statements
using System.Linq;
public class ExampleQuery : ISelect<in Post, out IEnumerable<Post>>
{
public IEnumerable<Post> Run(IQueryable<Post> objects)
{
return objects.Where(x => x.Published);
}
}

Keybase proof

I hereby claim:

  • I am scottguymer on github.
  • I am scottguymer (https://keybase.io/scottguymer) on keybase.
  • I have a public key whose fingerprint is FBE4 0DF3 CBCA A52B A7E5 8A0A 73FF 01E7 676C 624F

To claim this, I am signing this object: