Coffee grounds are great in any compost or straight onto the garden - I haven't actually seen this, but I am told that slugs and snails either do not like to or will not cross coffee grounds!
I have 3 Bokashi bins, in which you put all of your kitchen waste, then a layer of fermented grains, sort of pickles the mixture. I then leave for 3 weeks, hence the 3 bins, after 3 weeks I empty the first bin into a trench in the garden, cover with a layer of soil and in 3 weeks it has all been eaten up by microbes. My very sandy soil in Fairview Park, SA has slowly been transformed.