CLICK ME
yes, even hidden code blocks!
print("hello world!")
#import <CommonCrypto/CommonCrypto.h> |
I use the first | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
# xcode-build-bump.sh | |
# @desc Auto-increment the build number every time the project is run. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
// Created by Vasily Ulianov on 09.02.17, updated in 2019. | |
// License: MIT | |
import Foundation | |
/// Subclass of `Operation` that adds support of asynchronous operations. | |
/// 1. Call `super.main()` when override `main` method. | |
/// 2. When operation is finished or cancelled set `state = .finished` or `finish()` | |
open class AsynchronousOperation: Operation { | |
public override var isAsynchronous: Bool { |
import SwiftUI | |
import WebKit | |
import Combine | |
class WebViewData: ObservableObject { | |
@Published var loading: Bool = false | |
@Published var scrollPercent: Float = 0 | |
@Published var url: URL? = nil | |
@Published var urlBar: String = "https://nasa.gov" | |
// Thanks to CuriousKea for getting this started! | |
// http://stackoverflow.com/a/8480325/239380 | |
- (void)scrollRowToVisible:(NSInteger)rowIndex animate:(BOOL)animate{ | |
if(animate){ | |
NSRect rowRect = [self rectOfRow:rowIndex]; | |
NSPoint scrollOrigin = rowRect.origin; | |
NSClipView *clipView = (NSClipView *)[self superview]; | |
scrollOrigin.y += MAX(0, round((NSHeight(rowRect)-NSHeight(clipView.frame))*0.5f)); | |
NSScrollView *scrollView = (NSScrollView *)[clipView superview]; |
import UIKit | |
import SafariServices | |
import AuthenticationServices | |
import AppAuth | |
import Reachability | |
class OIDExternalUserAgentASWebAuthenticationSession: NSObject, OIDExternalUserAgent { | |
private let presentingViewController: UIViewController | |
private var externalUserAgentFlowInProgress: Bool = false | |
private var authenticationViewController: ASWebAuthenticationSession? |
// Created by Matthew Johnson on 5/28/16. | |
// Copyright © 2016 Anandabits LLC. All rights reserved. | |
// | |
// This is a minimalist implementation of a responder chain in pure Swift. | |
// | |
// It is not intended to demonstrate the best way to | |
// implement event processing in Swift. | |
// | |
// The intent is to show how little code is necessary to acheive behavior | |
// similar to Cocoa's responder chain in pure Swift. |