In 2012, a U.S. programmer outsourced his work to a Chinese programmer for one-fifth of his salary. His employer discovered he spent his workday watching cat videos.