The MyShake app warned thousands of users up to 18 seconds before Tuesday's magnitude 5.1 earthquake hit California's Ba