Skip to content

Instantly share code, notes, and snippets.

View sharatsachin's full-sized avatar
😃
Focusing

Sharat Sachin sharatsachin

😃
Focusing
View GitHub Profile
@sharatsachin
sharatsachin / do_commits_in_past_leetcode.py
Created November 7, 2023 06:47
Take a folder containing your leetcode solutions and commit them in the past.
# print the list of all files in the leetcode directory
import os
import pathlib
import glob
import itertools
files = pathlib.Path("leetcode")
file_ext = ['cpp', 'py', 'postgresql']
new_folder = './leetcode-solutions'