Skip to content

Instantly share code, notes, and snippets.

@streanger
streanger / ascii_art_1_writeup.py
Created March 22, 2020 17:20
ascii_art_1_writeup
import sys
import nclib
def characters_map(s):
'''return value depend on specified character
important thins is escape characters at the end -> \\
'''
dictio = {
@streanger
streanger / ascii_art_0_writeup.py
Created March 22, 2020 17:18
ascii_art_0_writeup
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)
@streanger
streanger / deep_dive_writeup.py
Last active February 16, 2020 21:02
deep_dive_writeup
import sys
import os
import subprocess
def write_bin(file, data):
with open(file, 'wb') as f:
f.write(data)
f.close()
return True