I am trying to calculate $\int_{0}^{\infty} e^{-t^{2}} \sin \left(t^{2}\right) d t$ by residue theorem, what I did according to the hint I got is take a path as follow 
while it has angle $\theta = \frac{\pi}{8}$ and it go from the origin to $R$ like $[0,R]$ I showed that $\int_{[\eta_R]} f(z)= -e^{- \pi i/8} \int_{[0,R]} f(z) $ and now I just need take the limit $R \rightarrow \infty$ and calculate $\int_{[\gamma_R]} f(z)$ wich is a bit problem because I dont see any poles of that function, but this integral is nonezero.
nuandetamixed up in first comment.) – Thomas Andrews May 29 '21 at 15:31