Skip to content

Instantly share code, notes, and snippets.

@projectyotta
projectyotta / checkpower.pyw
Created September 17, 2017 05:32
Plug power cord in . Charge . Pull cord out . Forget about cord and leave . Problem . Come up with solution . ( works only on windows )
"""
Note : works only for Windows .
Why :
I don't work at home , usually on campus.
I plug my power cord in , then when I leave , I often forget to put the power cord back in my bag.
I have to go back and get it after I realize I don't have it a few hours later , which is very irritating .
Hopefully , this piece of code helps.