I have kept on working right through. I work 60%, and that just about works, so long as I make it 60% and do not let the need to get something done bully me into working more than 60%.
Resting - I wad a sweater into a pillow and have a kip on the floor when I get tired. I have an office to myself, so that works. Don't know that I'd have the neck to do it if it were an open plan workplace.
Resting at night - I find paracetamol with codeine really helps. Doesn't stop the leg locking or the numbness, but it does enable me to get to sleep in spite of it, well, sometimes.
Going to work is however a major challenge for me. I am a mathematicians, and we mathematicians are all a bit vain about our mental acuity. Mental acuity? what mental acuity. My head these days seems to resemble cheese - a swiss variety at that. Owning up to cognitive limitations in the society of my colleagues gives me some intuitive feel for what it must have been like owning up to leprosy in medieval times. One colleague even moved his chair so that he wouldn't have to sit next to me in a meeting. Just makes you love to be there. Doesn't really help that I share their horror of my mental state. Alas, I cannot pick up my chair and move away from me.
Oddly, the kids (PhD students) are generally kind.
Even more curious, the creative aspect of mathematics is not at all dead, just the ability to handle the algebra to prove or explain it. John Milton knew and said it better than I can.http://www.bartleby.com/101/318.html
Hang in there. Don't be bullied.