This wiring arrangement allows for lowering the lights with a dimmer and controlling the fan with the builtin pull chain. The source is at the ceiling outlet box and 3-wire cable runs from there to the switch box. The neutral from the source is spliced directly to the white wire on the fan kit and the cable, running it through to the switch box.
This diagram shows two switches in the same box with two separate 120 volt sources. Three-wire cable is supplying the source for both switches with the black and red wires going to the bottom switch terminals. The black wire from each light is connected to the top terminal of their respective switch. The white and ground wires are spliced to run to each light fixture.
In this wiring, a switch and receptacle are in the same box and the switch controls the power to the outlet. The hot wire connects to the bottom terminal on the switch and the top output goes to the receptacle hot terminal. The neutral wire from the source connects directly to the receptacle neutral.
This diagram illustrates the wiring for multiple ground fault circuit interrupter receptacles with an unprotected duplex receptacle at the end of the circuit. The load terminals on the gfci are not used and the last receptacle is wired directly to the circuit source.