Skip to content

Instantly share code, notes, and snippets.

View Marfusios's full-sized avatar
〽️
Getting things done

Mariusz Kotas Marfusios

〽️
Getting things done
View GitHub Profile
Verifying my Blockstack ID is secured with the address 1Lkv2MbfQAx9PGXWFTP7bFtt3iapCoWexy https://explorer.blockstack.org/address/1Lkv2MbfQAx9PGXWFTP7bFtt3iapCoWexy
// Saving credentials into Windows credentials storage
// Helper class for CredentialManagement library (http://www.nuget.org/packages/CredentialManagement/)
// It loads the library dynamically, so you can add or remove it at runtime
using System;
using System.IO;
using System.Linq;
using System.Reflection;
@Marfusios
Marfusios / Singleton
Last active August 29, 2015 14:06
Thread safe and lazy initialized implementation of Singleton design pattern in C#.
public class Class1
{
private Class1() { }
public static Class1 Instance
{
get { return Class1Creator.instance; }
}
private class Class1Creator
@Marfusios
Marfusios / ReverseReader.cs
Last active September 4, 2023 07:13
Reverse reader in C#
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace Tools
{
/// <summary>