I have a few friends who listen to devotional music while coding, They say it makes them focus better.
I personally listen to a lot of movie soundtracks, EDM and random music on soundcloud while coding and take a few minutes of break every hour.
How do you focus when you're coding?
When losing focus I start dancing, moving, cleaning the kitchen or other household chores that require physical movement. Also yoga or running or walking for 30 mins helps a lot. Other than that:
Hope it helps.
On Spotify there are a number of focus playlists. Mostly ambient music, but it works well.
There's also noisli.com with more nature sounds which you can select yourself. You can change volumes too, which is nice :)
Robert
The most effective thing to get me involved in work is music, honestly. There's just one trick here - it must always be something new. I usually listen to playlists on this site f3mp3.com as there're a lot of playlists with lots of new songs in each. (I used to stream music on youtube but here I can download it as well, so that's more convenient for me)