Skip to content

Instantly share code, notes, and snippets.

using System;
namespace Identity.Models
{
public abstract class Identifier
{
public DateTime CreationTime { get; set; }
}
public abstract class ContactableIdentifier : Identifier
using System;
namespace Identity.Models
{
public enum CredentialType
{
Password,
PublicKey,
Token,
};
@miceiken
miceiken / bna-install-classic-beta.py
Created May 20, 2019 19:26
Install WoW Classic Beta (despite not being invited)
import requests
import socket
from contextlib import closing
HOST = "localhost"
def find_port():
ports = [1120] + list(range(6881, 9))
return next((port for port in ports if is_port_open(port)))
@miceiken
miceiken / Calc.cs
Last active February 18, 2016 18:08
Infix to postfix converter and postfix evaluator
using System;
using System.Collections.Generic;
using System.Linq;
// References
// * http://scriptasylum.com/tutorials/infix_postfix/algorithms/infix-postfix/
// * http://scriptasylum.com/tutorials/infix_postfix/algorithms/postfix-evaluation/
namespace DoUEvenPostfixM8
{
// We abuse derivatives for type-checking later on