$$z^4=-1=e^{\pi i+2k\pi i}=e^{\pi i(1+2k)}\Longrightarrow z=e^{\frac{\pi i}{4}(1+2k)}\,\,,\,k=0,1,2,3\Longrightarrow$$
the two roots in the upper half plane are
$$z_0=e^{\pi i/4}=\frac{1}{\sqrt 2}(1+i)\;\;,\;\;z_1=e^{3\pi i/4}=\frac{1}{\sqrt 2}(-1+i)$$
So, for example, putting $\,\displaystyle{f(z)=\frac{e^{iz}}{z^4+1}}\,$ , we get
$$Res_{z=z_0}(f)=\lim_{z\to z_0}\frac{(z-z_0)e^{iz}}{z^4+1}\stackrel{\text{L'Hospital}}=\lim_{z\to\frac{1}{\sqrt 2}(1+i)}\frac{e^{iz}}{4z^3}=\frac{e^{\frac{1}{\sqrt 2}(-1+i)}}{2\sqrt 2(-1+i)}$$
Of course, you get the same applying Julián's answer, whose proof uses L'Hospital's rule...