git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<?php | |
$data = (object)array( | |
"html" => "<foo bar=\"baz\"/> &", | |
"arabic" => "العربية al-ʿarabiyyah, IPA: [æl ʕɑrɑˈbijjɐ], or عربي ʿarabī", | |
"hebrew" => "עִבְרִית, Ivrit", | |
"chinese" => "汉语/漢語 Hanyu; 华语/華語 Huáyǔ; 中文 Zhōngwén", | |
"korean" => "한국어/조선말", | |
"japanese" => "日本語 Nihongo", | |
"umlauts" => "äüöãáàß", |
mr Marathi | |
bs Bosnian | |
ee_TG Ewe (Togo) | |
ms Malay | |
kam_KE Kamba (Kenya) | |
mt Maltese | |
ha Hausa | |
es_HN Spanish (Honduras) | |
ml_IN Malayalam (India) | |
ro_MD Romanian (Moldova) |
Picking the right architecture = Picking the right battles + Managing trade-offs
sudo apt-get install calibre | |
ebook-convert a.pdf a.mobi |
Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.
Author: Chris Lattner
extension UIFont { | |
// The `rawValue` MUST match the filename (without extension) | |
public enum Graphik: String, FontCacheDescriptor { | |
case regular = "GraphikAltWeb-Regular" | |
case medium = "GraphikAltWeb-Medium" | |
case regularItalic = "GraphikAltWeb-RegularItalic" | |
case mediumItalic = "GraphikAltWeb-MediumItalic" | |
} | |
import UIKit | |
/// Provides a convenient controller for working with the responder chain | |
public final class ResponderController: NSObject, NSCopying { | |
/// When true, the responder will loop through the responders when reaching the ends | |
@IBInspectable | |
public var isContinuous: Bool = true |
import Foundation | |
import UIKit | |
struct ViewStyle<T> { | |
let style: (T) -> Void | |
} | |
let filled = ViewStyle<UIButton> { | |
$0.setTitleColor(.white, for: .normal) | |
$0.backgroundColor = .red |