Last night laying in bed I thought, for some strange reason, about how would a guy implement a zero-crossing detector? Odd, since I have no current use for such a thing, but an interesting intellectual exercise nonetheless.
I first thought, as I always do, how would a guy do this
using only discretes? Diodes, BJTs, stuff like that.
Couldn't think of how that could possibly be done.
Then it struck me: how 'bout
an op-amp a comparator? So I came up with the following scheme:

Now this is totally bare-bones, just a basic proof of concept thing.
This morning at breakfast I cracked open my copy of Horowitz & Hill (
The Art of Electronics), looked up "zero-crossing" in the index and found this:

So hey, maybe I'm not as dumb as I think (or as others might accuse me of being). Now of course this is a fully-fleshed-out circuit, just about ready for use, with input protection (and hysteresis!).
I put that inverter after the op-amp because I figured that the output was going to be low, not high, on a zero crossing, but H&H, those clever dogs, just used the inverting configuration of the amp. Doh!
Anyhow, it gave me a slight boost this am. Now if I can just find a project that needs this thing ...