A term most commonly used by programmers and Game Devs to describe a sudden realisation on the solution of a problem or mistake in their coding.
"Thomas was in the shower wondering about a problem in his game when suddenly he Code Flashed figured out how to Finnish that character creator."