I actually have!
Intentionally I buy spring onions and plant the bottoms, however I notice many shops now cut the bottoms off, perhaps for this reason.
I sometimes keep my scraps and bury in a vegetable garden and had beautiful capsicums spring up from this, though these were not intentionally planted.
Most of my scraps however go into my worm farm and I get worm juice.