The hot source is spliced to the black, fan wire and the black wire running to the dimmer. At the other end, the black cable wire is spliced to one of the hot dimmer wires, it doesn’t matter which one. The other dimmer wire is spliced to the red wire in the switch box which is spliced to the blue, light wire at the other end.
In this diagram multiple ground fault circuit interrupter receptacles are wired together using pigtails. Two-conductor cable is run between gfci’s, and the hot, neutral and ground wires from the source are spliced to the line terminals at each device. The load terminals are not used and each device provides its own, single-location protection.
This diagram illustrates the wiring for a Cooper gfci/switch combo device wired to protect a garbage disposal. With this arrangement a receptacle, switch and disposal are protected with the ground fault breaker built into the device.
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.