Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
➜ 15:27:26 git clone https://github.com/jpsim/Yams.git | |
Cloning into 'Yams'... | |
remote: Enumerating objects: 111, done. | |
remote: Counting objects: 100% (111/111), done. | |
remote: Compressing objects: 100% (80/80), done. | |
remote: Total 3987 (delta 58), reused 71 (delta 31), pack-reused 3876 | |
Receiving objects: 100% (3987/3987), 4.24 MiB | 1.85 MiB/s, done. | |
Resolving deltas: 100% (2313/2313), done. | |
➜ 15:27:43 cd Yams | |
➜ 15:27:46 git:(master) rm -rf Yams.xcodeproj |
/* | |
Instead of this... | |
CGFloat minConstant = -60.0f; | |
CGFloat maxConstant = self.actionViewDefaultBottomConstraintConstant; | |
CGFloat stuckConstant = maxConstant - distanceToBottom; | |
// :chefpoop: | |
actionViewBottomContraintConstant = fminf(maxConstant, fmaxf(minConstant, stuckConstant)); | |
*/ |
// | |
// URLRequest.swift | |
// | |
// Created by Peter Prokop on 17/08/2017. | |
import Foundation | |
public extension URLRequest { | |
/// Returns a cURL command for a request |
import UIKit | |
extension UIColor: IntegerLiteralConvertible { | |
class func convertFromIntegerLiteral(value: IntegerLiteralType) -> UIColor { | |
let r = Double((value >> 16) & 0xFF) / 255; | |
let g = Double((value >> 8) & 0xFF) / 255; | |
let b = Double((value) & 0xFF) / 255; | |
return UIColor(red:r, green:g, blue:b, alpha:1.0) | |
} |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./* | \
sed 's/NS_AVAILABLE_IOS(.*)//g' | \
sed 's/NS_DEPRECATED_IOS(.*)//g' | \
sed 's/API_AVAILABLE(.*)//g' | \
sed 's/API_UNAVAILABLE(.*)//g' | \
sed 's/UI_APPEARANCE_SELECTOR//g' | \
// | |
// NSData+AESCrypt.h | |
// | |
// AES Encrypt/Decrypt | |
// Created by Jim Dovey and 'Jean' | |
// See http://iphonedevelopment.blogspot.com/2009/02/strong-encryption-for-cocoa-cocoa-touch.html | |
// | |
// BASE64 Encoding/Decoding | |
// Copyright (c) 2001 Kyle Hammond. All rights reserved. | |
// Original development by Dave Winer. |