`` i ca n't count the number of nights he let me camp out at whatever booth i was in , scratching away pages of notes , cranking out code like a mad scientist , after he 'd closed and gone to bed in his apartment upstairs .