- We've got some components
A
,B
andC
which provide different slots.const A = { template: `<div><slot name="a">Default A Content</slot></div>` }
const B = {
# -*- coding: utf-8 -*- | |
def Ord(ch): return ord(ch) - ord('A') # convert A-Z to 0-25 | |
def Chr(ch): return chr(ch + ord('A')) # convert 0-25 to A-Z | |
def Text(s): return "".join(ch for ch in s if ch in "ABCDEFGHIJKLMNOPQRSTUVWXYZ") | |
Rotors = { # name: (wiring, notches) | |
"I": ("EKMFLGDQVZNTOWYHXUSPAIBRCJ", "Q"), # 1930 Enigma I | |
"II": ("AJDKSIRUXBLHWTMCQGZNPYFVOE", "E"), # 1930 Enigma I | |
"III": ("BDFHJLCPRTXVZNYEIWGAKMUSQO", "V"), # 1930 Enigma I |