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
""" | |
Render TeX blocks to png | |
This is a Blogofile filter. Place it in your _filters directory. | |
""" | |
import tempfile | |
import subprocess | |
import shutil | |
import shlex | |
import os |
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
#!/usr/bin/env python | |
import sys | |
class VM: | |
max_space = 32 | |
def __init__(self, program, initial_data): | |
self.program_store = list() | |
self.data_store = self.max_space*[0] |