Skip to content

Instantly share code, notes, and snippets.

View mahabubulhasan's full-sized avatar
🛠️
building

Mahabubul Hasan mahabubulhasan

🛠️
building
View GitHub Profile
@mahabubulhasan
mahabubulhasan / Calisthenics.md
Created August 29, 2021 18:41 — forked from bobuss/Calisthenics.md
The 9 Rules of Object Calisthenics

Object Calisthenics outlines 9 basic rules to apply when performing the exercise:

  • One level of indentation per method.
  • Don't use the ELSE keyword.
  • Wrap all primitives and Strings in classes.
  • First class collections.
  • One dot per line.
  • Don't abbreviate.
  • Keep all classes less than 50 lines.
  • No classes with more than two instance variables.
@mahabubulhasan
mahabubulhasan / keyboardlistener.cs
Created January 16, 2019 04:44 — forked from Ciantic/keyboardlistener.cs
C# Keyboard listener
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Windows.Input;
using System.Windows.Threading;
using System.Collections.Generic;
namespace Ownskit.Utils
{