To start, sauté the onion in a hot pan of oil on medium heat.
After about a minute and half you can put the rice (or whatever grain) in the pan. At this point you can also put the corn (and whatever cooked vegetable or whatever else/leftovers you decide to use).
Cook for about 2 minutes. Then create an opening in the middle of the rice and crack the two eggs into it. Let cook for about 30-45 seconds and then stir in with the rest of the rice (this is where the dish gets the name Scramble).
Let cook until the egg does not look yolky anymore (looks scrambled). Take the pan off the heat.
Add salt and pepper to taste.
Crumble the bacon and mix it in with everything else.
Transfer the scramble to a bowl. Cut up half and avocado and sprinkle it on top. Enjoy.