Skip to content

Instantly share code, notes, and snippets.

View AkashMV's full-sized avatar

Akash AkashMV

View GitHub Profile
@AkashMV
AkashMV / scaffolding.py
Created March 9, 2024 16:28
wanna tell le AI models your project dir structure? scaffolding.py solves this
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'
@AkashMV
AkashMV / script.js
Last active March 13, 2024 06:18 — forked from gd3kr/script.js
Download a JSON List of people you follow on twitter
//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;