This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
# Fetch ADCDownloadAuth cookie | |
curl --cookie-jar cookie_file 'https://developerservices2.apple.com/services/download?path=%2FDeveloper_Tools%2FXcode_14%2FXcode_14.xip' | |
# Download Xcode using fetched ADCDownloadAuth cookie | |
curl --cookie cookie_file --remote-name 'https://download.developer.apple.com/Developer_Tools/Xcode_14/Xcode_14.xip' |
#!/bin/bash | |
while read f | |
do | |
echo "$(git log --format="%ai" --reverse "$f" | head -n1) $f" | |
done | sort -n |
textField.text = "fred" | |
textField.becomeFirstResponder() | |
DispatchQueue.main.async { | |
// Set some typingAttributes | |
self.textField.typingAttributes = [NSAttributedStringKey.font.rawValue: UIFont.boldSystemFont(ofSize: 18)] | |
// Resign first responder | |
self.textField.resignFirstResponder() | |
DispatchQueue.main.async { |
// Get a hold of Mobile Safari | |
let safari = XCUIApplication(bundleIdentifier: "com.apple.mobilesafari") | |
// Pass in the launch arguments to open specific url immediately | |
safari.launchArguments = ["-u", "http://google.com"] | |
safari.launch() | |
// If using deeplinks, you will need to accept the prompt | |
safari.buttons.matching(identifier: "Open").firstMatch.tap() |
// | |
// Copyright © 2017 Peter Goldsmith. All rights reserved. | |
// | |
import UIKit | |
import PassKit | |
struct BananaError: Error {} | |
class ViewController: UIViewController { |
// | |
// ViewController.swift | |
// AttributedString | |
// | |
// Created by Peter Goldsmith on 27/02/2017. | |
// | |
import UIKit | |
class ViewController: UIViewController { |
<?xml version="1.0" encoding="UTF-8"?> | |
<Bucket | |
type = "2" | |
version = "2.0"> | |
<Breakpoints> | |
<BreakpointProxy | |
BreakpointExtensionID = "Xcode.Breakpoint.SymbolicBreakpoint"> | |
<BreakpointContent | |
shouldBeEnabled = "Yes" | |
ignoreCount = "0" |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer