This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Router.swift | |
| // | |
| // Created by Maksim Petrenko on 22.10.16. | |
| // Copyright © 2017 MaxPayne. All rights reserved. | |
| // | |
| import UIKit | |
| let appRouter = Router() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| @interface Communicator : NSObject <NSStreamDelegate> { | |
| @public | |
| NSString *host; | |
| int port; | |
| } | |
| - (void)setup; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Compile PCRE - Perl Compatible Regular Expressions | |
| cd /usr/local/src | |
| curl -O ftp://ftp.csx.cam.ac.uk//pub/software/programming/pcre/pcre-8.31.tar.gz | |
| tar -xvzf pcre-8.31.tar.gz | |
| cd pcre-8.31 | |
| ./configure | |
| make | |
| sudo make install | |
| # Compile Autoconf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core curl | |
| apt-get -y install libssl-dev | |
| apt-get -y install libreadline5 libreadline5-dev | |
| apt-get -y install zlib1g zlib1g-dev | |
| # for passenger needed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| #/ Usage: pow [on|off] | |
| #/ Toggle between running Pow (http://pow.cx) and Apache on Mac OS X. | |
| # Show Usage | |
| function usage { | |
| grep '^#/' "$0" | cut -c4- | |
| exit 2 | |
| } | |
| [ -z "$1" -o "$1" = "--help" ] && usage |