Skip to content

Instantly share code, notes, and snippets.

import UIKit
extension UIViewController {
func popAlertView(_ message: String, title: String = "", completion: ((_ action: UIAlertAction) -> Void)? = nil) {
let alertView = UIAlertController(title: title, message: message, preferredStyle: .alert)
alertView.addAction(UIAlertAction(title: "OK", style: .default, handler: completion))
alertView.view.tintColor = .darkGray
present(alertView, animated: true, completion: nil)
}
https://resourcepool.io/2014/08/21/java-quickies-hibernate-validator-reference-implementation-of-jsr-303/
https://resourcepool.io/2016/02/26/java-quickies-double-braces-initialization/
@ydemartino
ydemartino / Spring @Transactional annotation
Last active April 6, 2016 15:33
What you wish you knew about Spring @transactional annotation
https://resourcepool.io/2014/11/16/java-quickies-what-you-wish-you-knew-about-spring-transactional-annotation/