Skip to content

Instantly share code, notes, and snippets.

View alilosoft's full-sized avatar
🐢

Ali Fellahi alilosoft

🐢
View GitHub Profile
import os
def rename_files():
working_dir = os.getcwd()
print "Current Working Directory: " + working_dir
secret_msg_dir = working_dir + "/secret"
# list file_list in dir
file_list = os.listdir(secret_msg_dir)
# rename each file
import webbrowser
import time
times = 5
print "Start working on: " + time.ctime()
while times > 0:
print "It's time for work!"
time.sleep(25 * 60)
print "Now, It's time to take a break!"
webbrowser.open("https://www.youtube.com/watch?v=1g5wM-YSNHo")