https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

| 1. Open Terminal | |
| 2. cd to your Xcode project | |
| 3. Execute the following when inside your target project: | |
| find . -name "*.swift" -print0 | xargs -0 wc -l |
| # Check out editorconfig.org for the deets | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 4 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
| Feature: Optional parameter | |
| Scenario: Use an optional parameter | |
| When I execute a step | |
| When I execute a step with the optional parameter whatever |
| // | |
| // RxAlamofireObjectMapper.swift | |
| // | |
| // Edit by TangZhen on 06/19/16. | |
| // Forked from https://gist.github.com/billwang1990/a0e20919e7add7aafd8e | |
| // Copyright © 2016 ztang.pub All rights reserved. | |
| // | |
| import Foundation | |
| import Alamofire |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');Those suck for maintenance and they're ugly.
| private static final String HOST_EMULATOR = "10.0.2.2"; | |
| private static final String HOST_PRODUCTION = "example.com"; | |
| public static String getHost() { | |
| if (BuildConfig.DEBUG) { | |
| return (Build.PRODUCT).contains("sdk") ? HOST_EMULATOR : BuildConfig.LOCAL_IP; | |
| } | |
| return HOST_PRODUCTION; | |
| } |
| apm install angularjs | |
| apm install atom-alignment | |
| apm install autocomplete-plus | |
| apm install autoprefixer | |
| apm install change-case | |
| apm install color-picker | |
| apm install csscomb | |
| apm install csslint | |
| apm install editor-stats | |
| apm install editorconfig |
| diff --git a/cordova-lib/src/cordova/platformsConfig.json b/cordova-lib/src/cordova/platformsConfig.json | |
| index d8f85d0..4aa53e8 100644 | |
| --- a/cordova-lib/src/cordova/platformsConfig.json | |
| +++ b/cordova-lib/src/cordova/platformsConfig.json | |
| @@ -5,6 +5,12 @@ | |
| "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git", | |
| "version": "3.7.0" | |
| }, | |
| + "osx" : { | |
| + "hostos" : ["darwin"], |
| 'use strict'; | |
| // ref: http://blog.victorquinn.com/javascript-promise-while-loop | |
| var q = require('bluebird'); | |
| var promiseWhile = function (condition, action) { | |
| var resolver = q.defer(); | |
| var loop = function () { |