https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png
![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)
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 |
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; | |
} |
function Get-IniContent ($filePath) | |
{ | |
$ini = @{} | |
$content = Get-Content $filePath | |
if ( $content -match "^\[(.+)\]" ) { | |
switch -regex -file $FilePath | |
{ | |
"^\[(.+)\]" # Section | |
{ | |
$section = $matches[1] |
######################### | |
# update 4 June 2014 | |
# ignore Pods folder and Podfile.lock | |
######################### | |
Pods | |
Podfile.lock | |
######################### | |
# https://gist.github.com/foundry/4383910 |