The formal grammar of XML is given in this specification using a simple Extended Backus-Naur Form (EBNF) notation. Each rule in the grammar defines one symbol, in the form
symbol ::= expression
from collections.abc import Callable, Collection, Iterable | |
from enum import Enum | |
from typing import TypeVar | |
class Alignment(Enum): | |
LEFT = "<" | |
CENTER = "^" | |
RIGHT = ">" |
#! /usr/bin/env python3 | |
import argparse | |
import logging | |
import subprocess | |
from pathlib import Path | |
import dbus | |
import requests |
from builtins import int, tuple, max | |
Result = tuple[int, int] | |
def points(game: Result, bet: Result) -> int: | |
""" | |
Calculates the awarded points for a given game result and bet. | |
- If the bet is exactly the same as the game result, 10 points are awarded. |
Add the following lines to the .vmx
file, which describes the VM.
These settings were tested with VMware Workstation Player v17.
VMX Reference (slightly outdated)
function Test-FileHash { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[string] $Path, | |
[Parameter(Mandatory)] | |
[string] $Hash, | |
[ValidateSet("SHA1", "SHA256", "SHA512")] |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[string] $Path, | |
[Parameter(Mandatory)] | |
[string] $Hash, | |
[ValidateSet("SHA1", "SHA256", "SHA512")] | |
[string] $Algorithm = "SHA256" |
package hexe | |
import ( | |
"math" | |
hsluv "github.com/hsluv/hsluv-go" | |
) | |
// Color defines an 8-bit packed color value in the HSLuv color space. | |
type Color uint8 |