A way to do the integral over the whole half-line with the residue theorem is the following. Consider the contour going straight from $0$ to $R$, following a circular arc from $R$ to $iR$, and then going straight from $iR$ to $0$. The desired integral $I$ is the integral on the first part of the contour. The last piece is
$$\int_R^0 \frac{1}{(ix)^4+1} d(ix)=i \int_R^0 \frac{1}{x^4+1} dx = -iI.$$
The middle piece can be shown using an "ML estimate" to go to zero as $R \to \infty$. Now the only pole of the integrand inside the contour is at $e^{i\pi/4}$, so the residue theorem tells you that the integral around the contour is
$$J=(1-i)I=2\pi i\operatorname{Res} \left ( \frac{1}{z^4+1},e^{i \pi/4} \right ).$$
This residue is $\lim_{z \to e^{i\pi/4}} \frac{z-e^{i\pi/4}}{z^4+1}=\frac{1}{4} e^{-3 i \pi/4}$, so $I=\frac{\pi i}{2(1-i)} e^{-3 i \pi/4}=\frac{\pi}{2\sqrt{2}}$.