git clone [email protected]: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
typealias Token = String | |
typealias AuthorizationValue = String | |
struct UserAuthenticationInfo { | |
let bearerToken: Token // the JWT | |
let refreshToken: Token | |
let expiryDate: Date // computed on creation from 'exp' claim | |
var isValid: Bool { | |
return expiryDate.compare(Date()) == .orderedDescending | |
} |
git clone [email protected]: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
import JustTweak | |
public class AppConfiguration: ModuleASettings, ModuleBSettings { | |
static let tweakManager: TweakManager = { | |
... | |
} | |
@TweakProperty(...) | |
var isFeatureXEnabled: Bool |
protocol ModuleASettings { | |
var isFeatureXEnabled: Bool { get } | |
} | |
protocol ModuleBSettings { | |
var publicApiHost: String { get } | |
var publicApiPort: Int? { get } | |
} |
@TweakProperty(fallbackValue: <#default_value#>, | |
feature: <#feature_key#>, | |
variable: <#variable_key#>, | |
tweakManager: tweakManager) | |
var isFeatureXEnabled: Bool | |
@TweakProperty(fallbackValue: <#default_value#>, | |
feature: <#feature_key#>, | |
variable: <#variable_key#>, | |
tweakManager: tweakManager) |
{ | |
"ui_customization": { | |
"display_red_view": { | |
"Title": "Display Red View", | |
"Description": "shows a red view in the main view controller", | |
"Group": "UI Customization", | |
"Value": false | |
}, | |
... | |
"red_view_alpha_component": { |
static let tweakManager: TweakManager = { | |
// mutable configuration (to override tweaks from other configurations) | |
let userDefaultsConfiguration = UserDefaultsConfiguration(userDefaults: .standard) | |
// remote configurations (optional) | |
let optimizelyConfiguration = OptimizelyConfiguration() | |
let firebaseConfiguration = FirebaseConfiguration() | |
// local JSON configuration (default tweaks) | |
let jsonFileURL = Bundle.main.url(forResource: "ExampleConfiguration", withExtension: "json")! |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
$ brew install imagemagick | |
$ convert UK-iPad*.png -resize 50% -set filename:fname '%t_Resized' +adjoin '%[filename:fname].png' | |
credits to Oliver Pearmain |
[{ "Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup", "Country": "Afghanistan", "ISO": "AF", "Format": "NNNN", "Regex": "^\\d{4}$" }, { "Note": "With Finland, first two numbers are 22.", "Country": "Åland Islands", "ISO": "AX", "Format": "NNNNN", "Regex": "^\\d{5}$" }, { "Note": "Introduced in 2006, gradually implemented throughout 2007.", "Country": "Albania", "ISO": "AL", "Format": "NNNN", "Regex": "^\\d{4}$" }, { "Note": "First two as in ISO 3166-2:DZ", "Country": "Algeria", "ISO": "DZ", "Format": "NNNNN", "Regex": "^\\d{5}$" }, { "Note": "U.S. ZIP codes (range 96799)", "Country": "American Samoa", "ISO": "AS", "Format": "NNNNN (optionally NNNNN-NNNN or NNNNN-NNNNNN)", "Regex": "^\\d{5}(-{1}\\d{4,6})$" }, { "Note": |