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
| <?php // ~/.config/psysh/config.php | |
| // Anything not Laravel - let's try to autoload something likely to exist | |
| if (!defined('LARAVEL_START')) { | |
| return [ | |
| 'defaultIncludes' => [ | |
| getcwd().'/vendor/autoload.php', | |
| getcwd().'/bootstrap/autoload.php', | |
| ], | |
| ]; |
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
| //instructions are taken from: https://github.com/intel/linux-sgx | |
| //Installing SGX driver: | |
| //----------------------- | |
| git clone https://github.com/intel/linux-sgx-driver.git | |
| //Check if matching Kernel headers are installed: | |
| dpkg-query -s linux-headers-$(uname -r) | |
| //If not run: | |
| sudo apt-get install linux-headers-$(uname -r) | |
| //In order to build: |
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
| /* | |
| How to reproduce crash: | |
| 1. Toggle switch on, Calendar authorization is requested, grant authorization | |
| 2. Switch to the Settings app, disable Calendar authorization | |
| 3. The app crashes | |
| Or: | |
| 1. Toggle switch on, Calendar authorization is requested, reject authorization | |
| 2. Toggle the switch on again, an alert is shown that you should authorize in the Settings app | |
| 3. Go to the Settings app, enable Calendar authorization |
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
| // Created by Rutger Bresjer on 10/10/2017 | |
| // Notes: | |
| // - Be sure to enable "Hotspot Configuration" capability for the iOS target | |
| // - Make sure the NetworkExtension framework is linked to the target | |
| #import <Foundation/Foundation.h> | |
| #import <React/RCTBridgeModule.h> | |
| @interface IOSWifiManager : NSObject <RCTBridgeModule> |
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
| // | |
| // LocationService.swift | |
| // | |
| // Created by Rutger Bresjer on 13/07/2017. | |
| // Copyright © 2017 Woost. All rights reserved. | |
| // | |
| /* | |
| Dependencies: | |
| - RxSwift |
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 UIFont { | |
| static var appHeader: UIFont { | |
| return .boldFont(ofSize: 18) | |
| } | |
| static var appBody: UIFont { | |
| return .font(ofSize: 14) | |
| } | |
| static var appButton: UIFont { |
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
| fileprivate extension UIFont { | |
| static func lightFont(ofSize size: CGFloat) -> UIFont { | |
| return R.font.latoLight(size: size)! | |
| } | |
| static func font(ofSize size: CGFloat) -> UIFont { | |
| return R.font.latoRegular(size: size)! | |
| } | |
| static func boldFont(ofSize size: CGFloat) -> UIFont { |
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 UIColor { | |
| static var appPrimary: UIColor { | |
| return UIColor(hex: 0x9B26AF) | |
| } | |
| static var appPrimaryDark: UIColor { | |
| return UIColor(hex: 0x7A1EA1) | |
| } | |
| static var appPrimaryDarkest: UIColor { |
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
| fileprivate extension UIColor { | |
| convenience init(red: Int, green: Int, blue: Int) { | |
| assert(red >= 0 && red <= 255, "Invalid red component") | |
| assert(green >= 0 && green <= 255, "Invalid green component") | |
| assert(blue >= 0 && blue <= 255, "Invalid blue component") | |
| self.init(red: CGFloat(red) / 255.0, green: CGFloat(green) / 255.0, blue: CGFloat(blue) / 255.0, alpha: 1.0) | |
| } | |
| convenience init(red: Int, green: Int, blue: Int, opacity: CGFloat) { |
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
| // | |
| // LogManager.swift | |
| // | |
| // Created by Rutger Bresjer on 30/11/2016. | |
| // Copyright © 2016 Woost. All rights reserved. | |
| // | |
| import Foundation | |
| import RxSwift |
NewerOlder