Has anybody here fasted by inspiration from Buddhism?
Buddhism is generally against fasting. Buddhism is a practice of moderation in all things (the Middle Way). Fasting can quickly become an ascetic practice. Buddha's experience with fasting taught him that it wouldn't lead to enlightenment.
It is true that fasting is occasionally used in Buddhism, but only under tight supervision of a Zen master. Even then fasting in Buddhism never takes more than several days. Fasting allows coarse thoughts to diminish, but strength also diminishes, so there is a trade-off between mental clarity and reduced ability to meditate as long.
There are exceptions to this rule. For example, there are high-level Dzogchen practices (undertaken only under the guidance of a qualified lama) in which an herbal supplement called Chulen is used in a way that gradually allows the practitioner to subsist without eating regular food. Some Mahayana monks also fast for longer periods of time (but most don't).
One more point: It is not necessary to be a vegetarian as a Buddhist. Buddha himself wasn't vegetarian and he didn't prohibit meat-eating for his lay-followers.
Self-mastery, control over ego and to focus on the joy of existence outside of sensory pleasure from what I've read/heard.
Fasting isn't necessary for this, especially not for laypeople. If you want to fast with spiritual purposes in mind the only way is with constant supervision of a qualified individual.
My grandfather knew a guy who fasted till his cancer went away.
I'd say that's a good reasons.
That seems extremely far-fetched. Unless you were joking and my sarcasm detector failed.