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 sys | |
import nclib | |
def characters_map(s): | |
'''return value depend on specified character | |
important thins is escape characters at the end -> \\ | |
''' | |
dictio = { |
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 sys | |
import os | |
import json | |
from string import ascii_lowercase, ascii_uppercase, digits | |
import nclib | |
def read_json_to_dict(file): | |
with open(file) as f: | |
data = json.load(f) |
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 sys | |
import os | |
import subprocess | |
def write_bin(file, data): | |
with open(file, 'wb') as f: | |
f.write(data) | |
f.close() | |
return True |