For New York teacher Michael Flanagan, the pandemic was a crash course in new technology - rushing out laptops to stay-at-home students and shifting hectic school life online.