This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Identity.Models | |
{ | |
public enum CredentialType | |
{ | |
Password, | |
PublicKey, | |
Token, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Identity.Models | |
{ | |
public abstract class Identifier | |
{ | |
public DateTime CreationTime { get; set; } | |
} | |
public abstract class ContactableIdentifier : Identifier |