I hereby claim:
- I am kmadiar on github.
- I am kmadiar (https://keybase.io/kmadiar) on keybase.
- I have a public key whose fingerprint is C64D D73B 9BEB 87CE 31CA 27D0 3528 E4E3 DED1 E3C7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import UIKit | |
| /// Represents a single `NSLayoutConstraint` | |
| enum LayoutAnchor { | |
| case constant(attribute: NSLayoutConstraint.Attribute, | |
| relation: NSLayoutConstraint.Relation, | |
| constant: CGFloat) | |
| case relative(attribute: NSLayoutConstraint.Attribute, | |
| relation: NSLayoutConstraint.Relation, |
| // | |
| // ViewController.swift | |
| // PanOnScroll | |
| // | |
| // Created by Shinichiro Oba on 2018/03/08. | |
| // Copyright © 2018 bricklife.com. All rights reserved. | |
| // | |
| import UIKit |
| // | |
| // ViewController.swift | |
| // PanOnScroll | |
| // | |
| // Created by Shinichiro Oba on 2018/03/08. | |
| // Copyright © 2018 bricklife.com. All rights reserved. | |
| // | |
| import UIKit |
| import PlaygroundSupport | |
| import RxSwift | |
| PlaygroundPage.current.needsIndefiniteExecution = true | |
| extension ObservableType where E: Sequence { | |
| typealias T = E.Iterator.Element | |
| /// Create an observable which is an Array of the projected values |
| import UIKit | |
| extension UIEdgeInsets { | |
| var horizontal: CGFloat { return right + left } | |
| var vertical: CGFloat { return top + bottom } | |
| } | |
| extension CGSize { | |
| func paddedBy(_ insets: UIEdgeInsets) -> CGSize { | |
| return CGSize(width: width + insets.horizontal, height: height + insets.vertical) |
| import UIKit | |
| class AZTextFrameAttributes: NSObject { | |
| // MARK: - Properties | |
| fileprivate(set) var width: CGFloat = 0 | |
| fileprivate(set) var string: String? | |
| fileprivate(set) var attributedString: NSAttributedString? | |
| 1. Очень крутая книжка по сетям (стек OSI) – Charles Severance “Introduction to Network: How the Internet works” | |
| 2. URLCache – https://nshipster.com/nsurlcache/ | |
| 3. Ресёрч HTTP-кеширования с использованием URLCache https://qnoid.com/2016/04/10/A-primer-in-HTTP-caching-and-its-native-support-by-iOS.html | |
| 4. Анализ доступности сети: | |
| * SimplePing – https://developer.apple.com/library/archive/samplecode/SimplePing/Introduction/Intro.html | |
| * https://github.com/dustturtle/RealReachability | |
| * https://github.com/ankitthakur/SwiftPing | |
| * https://github.com/lmirosevic/GBPing | |
| * https://github.com/rwbutler/Connectivity | |
| * Баг с 2009 года – https://lists.apple.com/archives/macnetworkprog/2009/May/msg00056.html |
| readonly MODULEMAP="${PODS_ROOT}/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap" | |
| readonly HEADER="${PODS_ROOT}/TwitterCore/iOS/TwitterCore.framework/Headers/TwitterCore.h" | |
| if ! grep -q "TwitterCore_Private" "${MODULEMAP}"; then | |
| cat >"${MODULEMAP}" <<EOL | |
| module TwitterCore_Private { | |
| } | |
| EOL | |
| fi |