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
FIBONACCI SEQUENCE | |
You have to use an IDE or website in order to visualize the memory | |
+++++++> The number of numbers to load | |
+>+> Setup the two first numbers | |
<[<]>[ | |
[>] Move to the right most ptr | |
<< [->>+>+<<<] Store the first number in the 2 next free ptr | |
>>>[<<<+>>>-] Shift the last value in the first number ptr |
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
# -*- coding: utf-8 -*- | |
import random | |
HEIGHT = 32 | |
BLOCK, VOID = True, False | |
class Block: | |
blocks = [] |
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
# -*- coding: utf-8 -*- | |
import re | |
from collections import OrderedDict | |
from string import Template | |
BASE_HTML = Template("""<!DOCTYPE html><!-- $TITLE, $TYPE written by $AUTHOR --><head><title>$TITLE</title><meta charset="$ENCODE"/><style>body{font-family:$FONT;}.underlined{text-decoration: underline;}.obfuscated{text-decoration:line-through;}.centered{text-align:center;}table{border-collapse:collapse;}th{border:1px solid black;padding:5px;background-color:#DDDDDD;}td{border:1px solid black;padding:5px;}</style></head><body>$html</body>""") | |
class Token: | |
def __init__(self, regex): |
NewerOlder