Arduino Due as a oscilloscope?

Somewhere on this forum I've posted interrupt-driven code for sampling the ADC
(and driving the DAC too, for what its worth). I forget the subject line, but a forum
search might throw it up.