I don't think that he wrote ~6k lines of code in 12 hours. He said that he "will cheat a bit and just wholesale steal entire chunks of code from my other projects." If you look at the first two hours of time they were not spent writing much code at all mostly debugging sql schemas and the like.