Heat the oil in a wok or large skillet over medium-high heat. Fry the garlic for a few seconds. Add the pepper flakes and carrot, and cook for one minute, then remove. Add the beaten egg, and gently scramble. When the eggs have set, pour in the carrots, sauce, bean sprouts, noodles, peanuts, and green onion; toss together.