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
// | |
// Logging.swift | |
// | |
// Created by Dylan Gyesbreghs on 01/07/2017. | |
// Copyright © 2017 Dylan Gyesbreghs. All rights reserved. | |
// | |
import Foundation | |
public func leaveBreadcrumb(_ breadcrumb: Any, _ function: String = #function, _ lineNumber: Int = #line) { |
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
#!/bin/bash | |
# Install all the gems | |
sudo gem install fastlane | |
sudo gem install cocoapods | |
sudo gem install badge | |
sudo gem install xcodeproj -v 1.5.1 | |
sudo gem install xcov | |
# Install brew |
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
// | |
// IBANTextField.swift | |
// IBAN | |
// | |
// Created by Dylan Gyesbreghs on 27/08/2017. | |
// Copyright © 2017 Dylan Gyesbreghs. All rights reserved. | |
// | |
import UIKit |
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
// | |
// MKMapRect+Conversion.swift | |
// | |
// Created by Dylan Gyesbreghs on 29/06/2017. | |
// Copyright © 2017 Dylan Gyesbreghs. All rights reserved. | |
// | |
import MapKit | |
extension MKMapRect { |
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
// | |
// MKMapView+ZoomLevel.swift | |
// Monizze | |
// | |
// Created by Dylan Gyesbreghs on 23/06/2017. | |
// Copyright © 2017 DGyesbreghs. All rights reserved. | |
// https://oleb.net/blog/2010/05/set-the-zoom-level-of-mkmapview/ | |
// | |
import MapKit |
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
// MARK: - Actions | |
extension ViewController { | |
func swipeView(_ gesture: UIPanGestureRecognizer) { | |
guard let subView = gesture.view else { return } | |
guard let beginCenter = beginCenter else { | |
if gesture.state == .began { | |
self.beginCenter = subView.center | |
} | |
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
// | |
// UIView+RoundCorners.swift | |
// PullableView | |
// | |
// Created by Dylan Gyesbreghs on 09/06/2017. | |
// Copyright © 2017 Dylan Gyesbreghs. All rights reserved. | |
// | |
import UIKit |
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
std::ostream& operator<<(std::ostream &strm, const vector<int> &a) { | |
for (auto item : a) { | |
strm << item << std::endl; | |
} | |
return strm; | |
} |
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 UIKit | |
extension UIView { | |
class func newAutoLayoutView() -> Self { | |
let view = self.init() | |
view.translatesAutoresizingMaskIntoConstraints = false | |
return view | |
} | |
class var reuseIdentifier : String { |
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
// | |
// NSString+Base64.h | |
// Pods | |
// | |
// Created by Dylan Gyesbreghs on 27/10/2016. | |
// | |
// | |
#import <Foundation/Foundation.h> |