Skip to content

Instantly share code, notes, and snippets.

View budidino's full-sized avatar

Dino Budimilić budidino

View GitHub Profile
@budidino
budidino / get_appstore_reviews.py
Last active March 23, 2021 14:44
get App Store reviews
import xmltodict
import requests
import datetime
import multiprocessing as mp
COUNTRY_CODES = {
"AF": "AFGHANISTAN",
# "AX": "ÅLAND ISLANDS",
"AL": "ALBANIA",
"DZ": "ALGERIA",
@budidino
budidino / UIView extensions
Last active February 20, 2021 18:37
Useful UIView extensions for animating views - usually used when UIView is updated or interacted with
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
})
}