Every good developper plan there day. Start every morning to write what you will work on and make sure that you done all of you planned.
Challenge yourself every day, learn new things everyday, Working hard everyday.
I want you to ask yourself every night before you go to sleep what did i learned today? what have i done today? where did i direct my life today? if you ask yourself that question you will change how you work and see what you spend your time with. Then you will realize the things you did and It can help you change how you can work the next day.