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 python3 | |
# coding: utf-8 | |
import re | |
from collections import namedtuple | |
from functools import wraps | |
class ParseError(Exception): | |
pass |
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 python3.4 | |
# coding: utf-8 | |
from collections import ChainMap | |
class Bytecode: | |
def __init__(self, instructions): | |
self.instructions = instructions | |
def __str__(self): |
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
#!/usr/bin/env python3.5 | |
# coding: utf-8 | |
from abc import * | |
from collections import ChainMap, OrderedDict | |
import re | |
from operator import eq | |
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
# Types | |
abstract type Type | |
end | |
struct VarType <: Type | |
name :: String | |
rigid :: Bool | |
end |
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 python3.7 | |
# coding: utf-8 | |
import types | |
import functools | |
import abc | |
import typing | |
from contextlib import contextmanager | |
from collections import OrderedDict |
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 python3.8 | |
import re | |
import sys | |
import os | |
import uuid | |
from pathlib import Path | |
import glob | |
import time | |
import datetime |
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 python3.8 | |
import os | |
import sys | |
import re | |
import glob | |
ZK, = sys.argv[1:] | |
def make_link_regex(url_regex): |
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
{-# LANGUAGE | |
LambdaCase | |
, OverloadedLists | |
, OverloadedStrings | |
, RecordWildCards | |
, BlockArguments | |
, DeriveFunctor | |
, TypeApplications | |
, GeneralizedNewtypeDeriving | |
#-} |
OlderNewer