In the wok, stir-fry the onions, ginger, and garlic for about 1 minute. Add the sauce and bring to a boil. Add the tofu and nuts and cook, stirring constantly, until warm through and well coated with the sauce. Serve immediately over rice. Sprinkle with cilantro. If desired, serve with steamed broccoli.