def get_active_cubes(lines, quad=False):
    """ Return coordinates of active cubes """
    active_cubes = []

    for i, line in enumerate(lines):
        for j, char in enumerate(line):
            if char == "#":
                if quad:
                    active_cubes.append([i, j, 0, 0])
                else:
                    active_cubes.append([i, j, 0])

    return active_cubes