Skip to content

Instantly share code, notes, and snippets.

View MostafaEissa's full-sized avatar

Mostafa Abdelrahman MostafaEissa

View GitHub Profile
using System;
using System.Numerics;
namespace Common
{
/// <summary>
/// Arbitrary precision decimal.
/// All operations are exact, except for division. Division never determines more digits than the given precision.
/// Source: https://gist.github.com/JcBernack/0b4eef59ca97ee931a2f45542b9ff06d
/// Based on https://stackoverflow.com/a/4524254
@MostafaEissa
MostafaEissa / README-Fancy.md
Created October 2, 2019 20:46 — forked from ramantehlan/README-Fancy.md
README template I use for most of my projects.

Introduction

  • Add your project logo.
  • Write a short introduction to the project.
  • If you are using badges, add them here.

📒 Index

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EnumerableExtensions
{
public static class EnumerableExtensions
{
/// <summary>
@MostafaEissa
MostafaEissa / RandomPassword.cs
Last active November 2, 2015 18:44
RandomPassword.cs
using System;
using System.Net;
using System.Security.Cryptography;
public class RandomPassword
{
// Define default min and max password lengths.
private static int DEFAULT_MIN_PASSWORD_LENGTH = 8;
private static int DEFAULT_MAX_PASSWORD_LENGTH = 8;