-
Clone the swagger-codegen repo, checkout the branch "2.3.0"
-
mvn clean package -
Create a shell script to make it easier to run your version of swagger-codegen:
/usr/local/bin/swagger-codegen-2.3.0
| #import <CommonCrypto/CommonCrypto.h> |
| --- | |
| pipelines: | |
| cloudfront: | |
| - step: | |
| image: python:3.5.1 | |
| script: | |
| - pip install awscli | |
| # set up AWS access credentials incl. region | |
| - export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" |
| import UIKit | |
| import PlaygroundSupport | |
| //http://stackoverflow.com/questions/72768/how-do-you-detect-credit-card-type-based-on-number | |
| enum CreditCardType { | |
| case visa | |
| case visaElectron | |
| case mastercard |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
NOTE (2022-07-09): Xcode finally added this functionality in Xcode 14, please see release notes here:
New Features in Xcode 14 Beta 3
When editing code, the Edit > Duplicate menu item and its corresponding keyboard shortcut now duplicate the selected text — or the line that currently contains the insertion point, if no text is selected. (8614499) (FB5618491)
| // | |
| // WhereAmIRunning.swift | |
| // https://gist.github.com/mvarie/63455babc2d0480858da | |
| // | |
| // ### Detects whether we're running in a Simulator, TestFlight Beta or App Store build ### | |
| // | |
| // Based on https://github.com/bitstadium/HockeySDK-iOS/blob/develop/Classes/BITHockeyHelper.m | |
| // Inspired by http://stackoverflow.com/questions/18282326/how-can-i-detect-if-the-currently-running-app-was-installed-from-the-app-store | |
| // Created by marcantonio on 04/11/15. | |
| // |