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
import os | |
def generate_ascii_tree(directory, indent=''): | |
tree = '' | |
items = os.listdir(directory) | |
items.sort() | |
for i, item in enumerate(items): | |
if(item == 'node_modules'): | |
tree += f'{indent}{"└──" if is_last else "├──"}{item}/\n' |
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
//there are issues with how we manage to skip pixels. | |
//accounts are getting skipped. | |
let following = []; // Initialize an empty array to hold all elements of people you follow | |
let formattedFollowers = [] | |
const scrollInterval = 2000; | |
const scrollStep = 2000; // Pixels to scroll on each step | |
let previousFollowingCount = 0; |