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
| <?php | |
| /* | |
| echo plural_form(42, array('арбуз', 'арбуза', 'арбузов')); | |
| */ | |
| function plural_form($n, $forms) { | |
| return $n%10==1&&$n%100!=11?$forms[0]:($n%10>=2&&$n%10<=4&&($n%100<10||$n%100>=20)?$forms[1]:$forms[2]); | |
| } |
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
| "use strict" | |
| const path = require('path'); | |
| const fs = require('fs'); | |
| const args = process.argv.slice(2); | |
| const packageJson = require(path.resolve(process.cwd(), args[0])); | |
| const destinationBranch = args[1]; | |
| const devRepos = fs.readFileSync(args[2]).toString().split('\n'); | |
| const excludeRepos = fs.readFileSync(args[3]).toString().split('\n'); |
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
| PACKAGE_JSON_LIST=() | |
| DIRS=() | |
| DIRTYDIRS=() | |
| DEFAULT_START_BRANCH="master" | |
| DEFAULT_DESTINATION_BRANCH="feature-test" | |
| DEFAULT_MESSAGE="package.json" | |
| DEFAULT_EDITOR="gvim -fp" | |
| DEFAULT_DEVREPOS_FILE="devrepos" |