Yo violet you should steal this so you can blog some more.
three
- 0 Posts
- 66 Comments
three@piefed.socialto
Lemmy Shitpost@lemmy.world•Some people so used to very high refresh rates... seem like they're panicking when the framerate drops below 60 fps.English
113·2 days agoNot a shitpost you fucking mongoloid.
Relaxation. Or, if you’re a masochist, getting moist and stepping out into the cold bathroom.
Could try an Asian supermarket.
three@piefed.socialto
Programming@programming.dev•A tiny terminal Pomodoro timer I made for myself in PythonEnglish
91·5 days agoimport time import os import platform import sys from datetime import datetime _old_settings = None _buffer = "" YELLOW = "\033[93m" GREEN = "\033[92m" RESET = "\033[0m" def clear_console(): if platform.system() == "Windows": os.system("cls") else: os.system("clear") def enable_keyboard_input(): if sys.platform.startswith("win"): pass else: global _old_settings global _termios_imported if termios is None: import termios if _old_settings is not None: fd = sys.stdin.fileno() termios.tcsetattr(fd, termios.TCSADRAIN, _old_settings) def disable_keyboard_input(): if sys.platform.startswith("win"): pass else: global _old_settings global _termios_imported if termios is None: import termios fd = sys.stdin.fileno() _old_settings = termios.tcgetattr(fd) new = termios.tcgetattr(fd) new[3] = new[3] & ~termios.ECHO & ~termios.ICANON termios.tcsetattr(fd, termios.TCSADRAIN, new) def input_title(title): # enable_keyboard_input() in_value = input(title) # disable_keyboard_input() return in_value def input_uint(title): while True: # enable_keyboard_input() in_value = input(title) # disable_keyboard_input() if in_value.isdigit(): return int(in_value) def print_buffer(): global _buffer print(_buffer, end="") def print_in_buffer(printable): global _buffer _buffer += printable + "\n" def main(): title = input_title("Title: ") work_time_minutes = input_uint("Work interval time in Minutes: ") break_time_minutes = input_uint("Break interval time in Minutes: ") work_time_seconds = work_time_minutes * 60 break_time_seconds = break_time_minutes * 60 intervals = input_uint("Intervals Count: ") duration = intervals * (work_time_minutes + break_time_minutes) clear_console() txt_report = "" json_report = dict() pdf_report = None print_in_buffer(F"MPomidoro") print_in_buffer(F"{title}") print_in_buffer(F"{intervals} x {work_time_minutes}min {break_time_minutes}min") print_in_buffer(F"") begin = datetime.now() for interval_i in range(0, intervals): for work_i in range(0, work_time_seconds): time.sleep(1) clear_console() print_buffer() ml = (work_time_seconds - work_i) // 60 ml = F"0{ml}" if ml < 10 else ml ms = (work_time_seconds - work_i) % 60 ms = F"0{ms}" if ms < 10 else ms print(f"{YELLOW}WORK #{interval_i+1} {ml}:{ms}{RESET}") clear_console() print_in_buffer(F"{GREEN}WORK #{interval_i+1} {work_time_minutes}min{RESET}") print_buffer() for break_i in range(0, break_time_seconds): time.sleep(1) clear_console() print_buffer() ml = (break_time_seconds - break_i) // 60 ml = F"0{ml}" if ml < 10 else ml ms = (break_time_seconds - break_i) % 60 ms = F"0{ms}" if ms < 10 else ms print(f"{YELLOW}BREAK #{interval_i+1} {ml}:{ms}{RESET}") clear_console() print_in_buffer(F"{GREEN}BREAK #{interval_i+1} {break_time_minutes}min{RESET}") print_buffer() clear_console() print_in_buffer(F"") print_buffer() end = datetime.now() begin_year = begin.strftime("%Y") begin_month = begin.strftime("%m") begin_day = begin.strftime("%d") begin_hour = begin.strftime("%H") begin_minute = begin.strftime("%M") end_year = end.strftime("%Y") end_month = end.strftime("%m") end_day = end.strftime("%d") end_hour = end.strftime("%H") end_minute = end.strftime("%M") conclusions = input_title("Conclusions: ") txt_report += F"MPomidoro Report\n" txt_report += F"Title: {title}\n" txt_report += F"Date: {begin.strftime("%Y.%m.%d")}\n" txt_report += F"Begin: {begin_hour}:{begin_minute}\n" txt_report += F"End: {end_hour}:{end_minute}\n" txt_report += F"Duration: {duration}min\n" txt_report += F"Conclusions: {conclusions}\n" txt_report += F"\n" for i in range(0, intervals): txt_report += F"✓ WORK #{i+1} {work_time_minutes}min\n" txt_report += F"✓ BREAK #{i+1} {break_time_minutes}min\n" filepath = F"./Reports/{begin_year}/{begin_month}/{begin_year}_{begin_month}_{begin_day}_{begin_hour}{begin_minute}_{title.replace(" ", "_")}.txt" os.makedirs(os.path.dirname(filepath), exist_ok=True) with open(filepath, "w", encoding="utf-8") as file: file.write(txt_report) if __name__ == "__main__": main()
three@piefed.socialto
General Memes & Private Chuckle@lemmy.dbzer0.com•2meirl4meirlEnglish
341·6 days agoBitch, clean yourself.
three@piefed.socialto
movies@piefed.social•Box Office: ‘Michael’ Bows to $217 Million Globally, ‘Mario’ Surpasses $800 Million, ‘Project Hail Mary’ Rockets Past $600 MillionEnglish
13·6 days agoBased corporate profit monitoring community
three@piefed.socialtoUnited States | News & Politics@midwest.social•People in Israel were searching for cole allen 12 h before the attemptEnglish
14·6 days agoYou’re so close. Maybe refresh your definition of irony ;)
three@piefed.socialtoUnited States | News & Politics@midwest.social•People in Israel were searching for cole allen 12 h before the attemptEnglish
111·6 days agoOk, real slow.
Just checked
Who are you? Didn’t even give a screenshot, nothing?
hurrr what you mean just trust me bro??
Incredible.
three@piefed.socialtoUnited States | News & Politics@midwest.social•People in Israel were searching for cole allen 12 h before the attemptEnglish
28·6 days agoSo the irony wasn’t on purpose, incredible.
three@piefed.socialtoUnited States | News & Politics@midwest.social•People in Israel were searching for cole allen 12 h before the attemptEnglish
310·6 days agotrust me bro
lmfao I seriously hope you’re being ironic on purpose
This! Absolutely ridiculous this post even had to be made. Who in they’re right mind would waste their time making this comic for there to be such an easy solution? Next time, just ask the damn question!!
You’re not peeing hard enough.
three@piefed.socialto
Showerthoughts@lemmy.world•People with terminal illnesses/in their last days should be allowed to have any drugs they want.English
664·7 days agoBased enabler
three@piefed.socialto
European Memes@lemmy.zip•Still all Italian pastas taste the same..English
25·7 days agothe white man is the most superior race
Thanks Rowling, very cool.



Ok, but can we get a tl;dr for your post because you clearly misunderstand what that stands for.