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.
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 the wiring for multiple receptacles in an arrangement that connects each individually to the source. All wires are spliced to a pigtail which is connected to each device. This wiring allows for voltage at each device independent of the other outlets in the circuit.
This diagram illustrates wiring a GFCI receptacle and light switch in the same outlet box, a common arrangement in a bathroom with limited space. The hot source is spliced to the LINE terminal on the receptacle and to the bottom terminal on the light switch. The neutral and ground wires are spliced together and run to each device in the circuit.