Skip to content

Instantly share code, notes, and snippets.

View anuviswan's full-sized avatar
🎯
Focusing

Anu Viswan anuviswan

🎯
Focusing
View GitHub Profile
@anuviswan
anuviswan / SCBootstrapper.cs
Last active September 4, 2019 12:32
Bootstrapper Class for Caliburn.Micro with SimpleContainer as IoC Container
public class SCBootstrapper:BootstrapperBase
{
private readonly SimpleContainer _Container = new SimpleContainer();
public SCBootstrapper()
{
Initialize();
}
protected override void Configure()
{
@anuviswan
anuviswan / MEFBootstrapper.cs
Created February 6, 2018 05:14
Bootstrapper for Caliburn.Micro with MEF as IoC
public class MEFBootstrapper:BootstrapperBase
{
#region Private Variables
private CompositionContainer _Container;
#endregion
#region Constructor
public MEFBootstrapper()
{
Initialize();
@anuviswan
anuviswan / BenchmarkSpan.cs
Last active March 16, 2018 12:50
This class benchmarks usage of Span instead of string when parsing sub-string. This is a demonstrative class used in the blog post at www.bytelanguage.net.
public class Program
{
static void Main()
{
BenchmarkRunner.Run<BenchmarkDemo>();
}
}
[MemoryDiagnoser]
public class BenchmarkDemo
@anuviswan
anuviswan / RoundedRectangleAnnotation.cs
Created August 29, 2018 17:10
RectangleAnnotation With support for RoundedCorner in OxyPlot
// --------------------------------------------------------------------------------------------------------------------
// <summary>
// Represents an annotation that shows a rounded rectangle. Forked from OxyPlot Source.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
using System;
namespace OxyPlot.Annotations
{
@anuviswan
anuviswan / UnityBootstrapper.cs
Created October 14, 2018 06:05
Bootstrapper for Caliburn.Micro with Unity as IoC
public class Bootstrapper : BootstrapperBase
{
private IUnityContainer _unityContainer;
#region Constructor
public Bootstrapper()
{
Initialize();
}
#endregion

Docker commands

This document provides a quick overview of most commonly used Docker Commands

General

Check Version

$ docker version
@anuviswan
anuviswan / GitCheetsheet.md
Last active August 6, 2023 11:06
Git Cheatsheet

List which files are staged, unstaged, and untracked.

$ git status

Add files

$ git add 'fileName'