Skip to content

Instantly share code, notes, and snippets.

dstring f(string a){
import std.string, std.conv;
alias D = to!dstring;
dstring BB = "𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ"d;
string UC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
if (a.length == 1)
return D("<i>"~a~"</i>");
if (a[0] == a[1])
from itertools import *
j = 1
while j < 20:
k = [[x] for x in open(str(j) + '.txt').read().split('\n')]
for i in range(j+1, 21):
print(i)
x = open(str(i) + '.txt').read().split('\n')
for m in x:
if m:
import string
from math import inf
class base:
"""manages metadata and conversions methods for unary and positional numeric systems"""
def __init__ (self, base = 10,
charset = string.digits + string.ascii_uppercase + string.ascii_lowercase,
radix_point = '.',
def bf_to_wf (bf, pool, transition = '-'):
words = []
curr, index = 0, 0
for char in bf:
curr_slot, trans = '', ''
for _ in range('.-+,><[]'.index(char) + 2):
if trans: