This file contains hidden or 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
// Inspired by: http://jng.imagine27.com/articles/2011-06-28-141124_purely_functional_types_red_black_trees_in_qi.html | |
type TreeNode<'a> = { Key: int; Val: 'a } | |
type Color = Red | Black | |
type Tree<'a> = { Color: Color; LTree: Tree<'a> option; TreeNode: TreeNode<'a>; RTree: Tree<'a> option; } | |
let makeTreeBlack tree = | |
match tree with |
This file contains hidden or 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.Drawing; | |
using System.Drawing.Imaging; | |
using OpenTK.Graphics; | |
using OpenTK.Graphics.OpenGL; | |
using SDPixelFormat = System.Drawing.Imaging.PixelFormat; | |
using PixelFormat = OpenTK.Graphics.OpenGL.PixelFormat; | |
namespace RenderToBmp | |
{ |
This file contains hidden or 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
namespace Avalonia.Media.TextFormatting.Unicode | |
open Avalonia.Utility | |
[<Struct; IsByRefLike>] | |
type CodepointEnumerator = | |
val mutable text : ReadOnlySlice<char> | |
val mutable current : Codepoint |
This file contains hidden or 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
if [ "$#" -ne 3 ]; then | |
echo "Usage: letsencrypt_generate_pfx.sh <domain> <password> <output>" | |
echo "Example: letsencrypt_generate_pfx.sh fingerguns.co p4ssw0rd /some/dir/certificate.pfx" | |
exit 1 | |
fi | |
domain=$1 | |
password=$2 | |
output=$3 |