Skip to content

Instantly share code, notes, and snippets.

View Ewerton's full-sized avatar

Ewerton Mattos Ewerton

View GitHub Profile
@ReallyLiri
ReallyLiri / ServiceCollectionExtensions.cs
Last active September 28, 2022 06:37
ASP.NET dependency injection extensions
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
namespace ServiceCollectionExtensions
{
public static class ServiceCollectionExtensions
@KyleMit
KyleMit / archive.ps1
Last active February 25, 2024 14:25
Execute Powershell Script on Right Click in Windows Explorer
$path = $args[0]
Add-Type -AssemblyName PresentationFramework
[System.Windows.MessageBox]::Show("Hello $path")
@wojteklu
wojteklu / clean_code.md
Last active June 25, 2024 20:23
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

anonymous
anonymous / Kinect For Physiotherapy 1.5
Created July 11, 2012 22:14
Updated 1.5 code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;