Skip to content

Instantly share code, notes, and snippets.

View shoaibshakeel381's full-sized avatar
🍉

Shoaib Shakeel shoaibshakeel381

🍉
View GitHub Profile
@shoaibshakeel381
shoaibshakeel381 / .zshrc
Created August 1, 2020 22:21 — forked from kidager/.zshrc
ZSH Powerline installation
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
namespace Demo
{
using FluentValidation;
using FluentValidation.Internal;
using FluentValidation.Validators;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using StructureMap;
@shoaibshakeel381
shoaibshakeel381 / community-standup-explained.cs
Created March 21, 2023 00:38 — forked from jaredpar/community-standup-explained.cs
This is the code I demonstrated at the .NET Community Standup on 2023/1/12 with comments to explain how it works.
using System;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
#nullable disable
// The stand up link https://www.youtube.com/watch?v=jaPk6Nt33KM
// String vs. string
@shoaibshakeel381
shoaibshakeel381 / mstest-with-autofac-container.cs
Last active July 11, 2023 14:30
sample code for using Autofac container for MsTest
public abstract class IntegrationTestsBase : IDisposable
{
protected IntegrationTestsBase()
{
Services = _container.BeginNewLifetimeScope();
}
public void Dispose()
{
Services.Dispose();