This file contains 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
#Установить Node.js и NPM: | |
brew update | |
brew install node@8 | |
brew link node@8 | |
echo 'export PATH="/usr/local/opt/node@8/bin:$PATH"' >> ~/.bash_profile | |
#Перезапустить терминал и проверить, что работают команды | |
node -v | |
npm -v |
This file contains 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
#made with fun | |
sudo echo | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
sudo gem install xcpretty | |
sudo gem install fastlane | |
sudo gem install xcode-install | |
sudo gem install cocoapods | |
export FASTLANE_USER="your@account.todevapple" | |
export FASTLANE_PASSWORD="yourpasswordtoaccont" | |
xcversion install 9.2 |
This file contains 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
#made with fun | |
curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64 | |
chmod +x /usr/local/bin/gitlab-runner | |
gitlab-runner install | |
gitlab-runner start | |
gitlab-runner register -n --url CI_URL --registration-token TOKEN --tag-list fastlane,cocoapods,osx_10-13,xcode_9-2 --executor shell | |
#fix locale for cocoapods | |
echo 'export LC_ALL="en_US.UTF-8"' >> ~/.bash_profile | |
echo 'export LANG=en_US.UTF-8' >> ~/.bash_profile |
This file contains 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
- (NSArray<NSNumber *> *)sortArray:(NSArray<NSNumber *> *)array { | |
NSArray<NSNumber *> *sortedArray = [array sortedArrayUsingComparator:^NSComparisonResult(NSNumber *num1, NSNumber *num2) { | |
return [num1 compare:num2]; | |
}]; | |
NSOrderedSet *orderedSet = [NSOrderedSet orderedSetWithArray:sortedArray]; | |
NSArray *arrayWithoutDuplicates = orderedSet.array; | |
return arrayWithoutDuplicates; | |
} |