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
use_frameworks! | |
source 'https://github.com/CocoaPods/Specs' | |
source 'https://github.com/PopcornTimeTV/Specs' | |
def pods | |
pod 'PopcornTorrent', '~> 1.1.13' | |
pod 'XCDYouTubeKit', '~> 2.5.5' | |
pod 'Alamofire', '~> 4.4.0' | |
pod 'AlamofireImage', '~> 3.2.0' |
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 openOnTwitter() { | |
let screenName = "jack" | |
let appURL = URL(string: "twitter://user?screen_name=\(screenName)")! | |
let webURL = URL(string: "https://twitter.com/\(screenName)")! | |
let application = UIApplication.shared | |
if application.canOpenURL(appURL) { | |
application.open(appURL, options: [:], completionHandler: nil) | |
} else { |
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
[ | |
{ | |
"name": "A45", | |
"description": "OLDTOWN" | |
}, | |
{ | |
"name": "A67", | |
"description": "WICKLOW" | |
}, | |
{ |
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
<# | |
.SYNOPSIS | |
This script uses PsExec to run a PowerShell command for Azure CLI login as the NETWORK SERVICE account using device code authentication. | |
#> | |
$user = [Security.Principal.WindowsIdentity]::GetCurrent(); | |
$isAdmin = (New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator) | |
if ($isAdmin) { | |
Write-Warning "This script will install set an Azure CLI login token for the NETWORK SERVICE account. Continue?" -WarningAction Inquire |