Skip to content

Instantly share code, notes, and snippets.

View NickPolyder's full-sized avatar
🏠
Working from home

Nick Polyderopoulos NickPolyder

🏠
Working from home
View GitHub Profile
@NickPolyder
NickPolyder / FactoryPattern.cs
Created January 29, 2021 21:48
Factory Pattern C#
public interface IUser
{
string Username { get; }
// rest of the properties
}
public interface IUserFactory
{
IUser CreateUser(UserState userState);
}
@NickPolyder
NickPolyder / ServiceCollectionExtensions
Created December 11, 2020 15:59
Making A ServiceCollection Extensions
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
public static class ExampleExtensions
{
public static IServiceCollection AddExampleService(this IServiceCollection services)
{
@NickPolyder
NickPolyder / git-config
Last active November 25, 2024 08:55
Git aliases for streamlined operations (insert on .gitconfig)
[diff]
tool = meld
guitool = meld
[difftool]
prompt = true
[merge]
tool = meld
guitool = meld
[mergetool]
prompt = true