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
// | |
// EmbedsViewController.swift | |
// | |
// Created by Evan Sobkowicz. | |
// Copyright © 2019 Twitter. All rights reserved. | |
// | |
import UIKit | |
import WebKit | |
import SafariServices |
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
*/15 * * * * php /path/slack-analytics/toppostsrealtime.php | |
0 15 * * * php /path/slack-analytics/dailydigest.php |
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
# Call touch_id_authenticate | |
def touch_id_authenticate | |
context = LAContext.alloc.init | |
auth_error = nil | |
reason = 'Authenticate using your fingerprint' | |
if context.canEvaluatePolicy(LAPolicyDeviceOwnerAuthenticationWithBiometrics, error: auth_error) | |
context.evaluatePolicy(LAPolicyDeviceOwnerAuthenticationWithBiometrics, localizedReason: reason, reply: lambda do |success, error| |