Answer:
Eating too soon before sleeping definatly causes weight gain, and actually a lack of sleep contributes to weight gain as well. Your body essentially resets itself after a minimum of 7 hours of sleep, including rebalancing your metabolism. If you fall asleep on a full stomach your body's ability to absorb nutrients is greatly reduced and in response stores most of what is digested for later, i.e. Fat.