Find the residue at each pole of the function $$f(z)=\dfrac{e^z}{e^z-1}$$
I wonder that $z=0$ is a pole of $f(z)$ ? And is it a simple pole? Can I use the formula when $z_0$ is a simple pole of $h$ then $$Res\Bigg(\dfrac{g(z)}{h(z)},z_0\Bigg)= \dfrac{g(z_0)}{h'(z_0)}$$ So $\text{Res}(f,0)=1$?
Yes. When the analytic function $\varphi$ that you are dealing with can be written as $\dfrac fg$, with $f$ and $g$ analytic, and:
then $z_0$ is a simple pole of $\varphi$ and $\operatorname{res}_{z=z_0}\varphi(z)=\dfrac{f(z_0)}{g'(z_0)}$.
In particular, the residue of $\dfrac{e^z}{e^z-1}$ at every $2\pi in$ ($n\in\mathbb Z$) is $1$.