A 20-year-old knocked a man unconscious outside a pub and then sent a Snapchat telling his victim to “keep snoring”.