This file contains hidden or 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 UITextField { | |
// Works only if the UITextField don't have the focus and have some text, | |
// so prefer call this in the didEndEditing event. | |
func setNumberOfLines(_ numberOfLines: Int, lineBreakMode: NSLineBreakMode) { | |
self.subviews.forEach { subview in | |
guard let label = subview as? UILabel else { return } | |
label.lineBreakMode = lineBreakMode | |
label.numberOfLines = numberOfLines | |
} |
This file contains hidden or 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
open -a Atom ~/.gitconfig |
This file contains hidden or 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
let frameworkBundle = Bundle(for: IniciaisImageView.self) | |
guard let bundleURL = frameworkBundle.resourceURL?.appendingPathComponent("AgiplanUtils.bundle") else { return } | |
let resourceBundle = Bundle(url: bundleURL) | |
guard let view = resourceBundle?.loadNibNamed("IniciaisImageView", owner: self, options: nil)?.first as? UIView else { | |
return | |
} |
This file contains hidden or 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
http://www.google.com/maps/d/u/0/kml?forcekml=1&mid=14eieZr331zbNk2zfPIWdT4fHY_c |
This file contains hidden or 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
protocol CloudTagViewDelegate { | |
func cloud(_ cloud: CloudTagView, tagTouched tag: TagView) | |
func cloud(_ cloud: CloudTagView, tagDismissed tag: TagView) | |
} |
This file contains hidden or 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
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
if ProcessInfo().environment["XCInjectBundleInto"] != nil { return true } | |
... | |
} |
This file contains hidden or 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
public class Main { | |
public static void main(String[] args) { | |
Veiculo f1 = new CarroF1(); | |
f1.acelera(10); | |
f1.acelera(10); | |
f1.freia(50); | |
OlderNewer