Gate resistor