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
// | |
// PlistManager.swift | |
// Unsplash SwiftUI | |
// | |
// Created by Anthony Da cruz on 09/12/2023. | |
// | |
import Foundation | |
struct ConfigData: Codable { |
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 round(roundValue:CGFloat? = nil) { | |
if roundValue != nil { | |
layer.cornerRadius = roundValue! | |
}else { | |
layer.cornerRadius = self.layer.bounds.width/2 | |
} | |
layer.masksToBounds = true |
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
// | |
// Authentication.swift | |
// | |
// Created by Anthony on 04/05/2017. | |
// Copyright © 2017 Aboutgoods. All rights reserved. | |
// | |
import Foundation | |
import Alamofire |
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
func mask(withRect rect: CGRect, inverse: Bool = false) { | |
let path = UIBezierPath(rect: rect) | |
let maskLayer = CAShapeLayer() | |
if inverse { | |
path.appendPath(UIBezierPath(rect: self.bounds)) | |
maskLayer.fillRule = kCAFillRuleEvenOdd | |
} | |
maskLayer.path = path.CGPath |
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
// request permission on page load | |
document.addEventListener('DOMContentLoaded', function () { | |
if (Notification.permission !== "granted") | |
Notification.requestPermission(); | |
}); | |
function notifyMe(notificationText,notificationTitle) { | |
if (!Notification) { | |
alert('Desktop notifications not available in your browser. Try Chromium.'); | |
return; |
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
// | |
// Router.swift | |
// | |
// Created by Anthony on 28/04/2017. | |
// Copyright © 2017 Anthony Da Cruz. All rights reserved. | |
// | |
import Foundation | |
import Alamofire |
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
virtualenv -p /usr/bin/python2.7 env | |
source env/bin/activate | |
pip install tensorflow | |
pip install keras==1.2.2 | |
pip install coremltools |
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
# Xcode | |
# | |
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | |
## Build generated | |
build/ | |
DerivedData/ | |
Index/ | |
## Various settings |
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
// | |
// ExtractedData.swift | |
// AGKitDemo-Template | |
// | |
// Created by Anthony on 20/03/2018. | |
// Copyright © 2018 AboutGoods. All rights reserved. | |
// | |
import Foundation |
OlderNewer