Scottish scientist James Croll, who would go on to revolutionize climate science, got his start by teaching himself physics and astronomy at a university library at night. He was employed there as a janitor.
In 1876, he was elected Fellow of the Royal Society, and awarded an honorary degree by the University of St Andrews.