Codes for rainy days