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
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]) |
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
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: |
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 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 = '.', |
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
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: |