$$\sin \left(\frac{1}{z}\right) = \sum_{n=0}^{\infty} \frac{(-1)^n}{(2n+1)!}\left(\frac{1}{z}\right)^{2n+1}$$
The residue is the coefficient on the $z^{-1}$ term, which here is 1.
Using partial fraction expansion, we see that
$$\frac{z+2}{z^2(z+1)}=\frac{-1}{z}+\frac{2}{z^2}+\frac{1}{z+1}$$
The residue is the coefficient on the $z^{-1}$ term, which here is -1.
$$\begin{align}
\frac{z(e^z-e^{-z})}{1-\cos z}&=\frac{z\sinh z}{\sin^2 (z/2)}\\\\
&=\frac{\sum_{n=0}^{\infty} \frac{z^{2n+2}}{(2n+1)!}}{\left(\sum_{n=0}^{\infty} \frac{(z/2)^{2n+1}}{(2n+1)!}\right)^2}\\\\
&=\frac{z^2\sum_{n=0}^{\infty} \frac{z^{2n}}{(2n+1)!}}{(z/2)^2\left(\sum_{n=0}^{\infty} \frac{(z/2)^{2n}}{(2n+1)!}\right)^2}\\\\
&=\frac{4\sum_{n=0}^{\infty} \frac{z^{2n}}{(2n+1)!}}{\left(\sum_{n=0}^{\infty} \frac{(z/2)^{2n}}{(2n+1)!}\right)^2}
\end{align}$$
The leading term in the series of the denominator is $1$. Thus, the function of interest has no singularity at $z=0$ and therefore, the residue is $0$. In fact, the limit as $z \to 0$ of the function of interest is $4$.