This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xmltodict | |
import requests | |
import datetime | |
import multiprocessing as mp | |
COUNTRY_CODES = { | |
"AF": "AFGHANISTAN", | |
# "AX": "ÅLAND ISLANDS", | |
"AL": "ALBANIA", | |
"DZ": "ALGERIA", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIView { | |
func springIn(duration: TimeInterval = 0.5, delay: Double = 0, fromScale: CGFloat = 0.6) { | |
self.layer.removeAllAnimations() | |
self.alpha = 1 | |
self.transform = CGAffineTransform(scaleX: fromScale, y: fromScale) | |
UIView.animate(withDuration: duration, delay: delay, usingSpringWithDamping: 0.5, initialSpringVelocity: 3.0, options: [.curveEaseInOut, .allowUserInteraction], animations: { | |
self.transform = .identity | |
}) | |
} |
OlderNewer