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 | |
| class Email | |
| { | |
| private $email; | |
| public function __construct($email) | |
| { | |
| if (filter_var($email, FILTER_VALIDATE_EMAIL)) { |
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 | |
| namespace Double\Wings; | |
| class P1 extends Wings implements ProphecyProphecyProphecySubjectInterface, ProphecyDoublerGeneratorReflectionInterface | |
| { | |
| private $objectProphecy; | |
| public function swing() |
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
| # OS Spefific files | |
| [._]*.s[a-w][a-z] | |
| [._]s[a-w][a-z] | |
| *.un~ | |
| Session.vim | |
| .netrwhist | |
| *~ | |
| .DS_Store | |
| .AppleDouble |
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/bash | |
| DIR_PATH=$1 | |
| if [ ! -d "$DIR_PATH" ]; then | |
| echo "Directory '$DIR_PATH' not exists" | |
| exit 1 | |
| fi | |
| if [ -z "$GIT_COMMIT" ]; then | |
| echo "No current commit... fail" |
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
| // module.provider, available in config phase | |
| function defaultProvider () { | |
| this.$get = defaultFactory; | |
| } | |
| // module.factory | |
| function defaultFactory (depService) { | |
| return new SomeService(depService); |
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
| angular | |
| .module('fsIonicStateDecorator', ['ionic', 'ui.router']) | |
| .config(function ($provide) { | |
| $provide.decorator('$state', stateDecorator); | |
| }) | |
| ; | |
| function stateDecorator ($delegate, $injector) { | |
| var $ionicHistory; |
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 | |
| namespace WT\ServiceBundle\Service; | |
| use Doctrine\ORM\EntityManager; | |
| use WT\CommonBundle\DateRange; | |
| use WT\BackendBundle\Entity\Service\AccountSource; | |
| use WT\ServiceBundle\AccountContextFactory; | |
| use WT\ServiceBundle\Entity\Transaction; |
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
| function generateForm (name, id) { | |
| return { | |
| id: id, | |
| name: name, | |
| updatedAt: new Date(), | |
| sections: { | |
| section_1: { | |
| id: sectionID(1), | |
| name: 'Section 1', |
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
| Scenario Outline: user may want to select value from predefined list or enter it's onw value | |
| Given i have form with select control | |
| When i select <selected> option | |
| And custom option is <entered> | |
| Then form should use value <expected> | |
| Examples: | |
| | selected | entered | expected | | |
| | First option | | First option | | |
| | Second options | | Second option | | |
| | | Custom option | Custom option | |
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
| function upload (url, files, config) { | |
| config = config || {}; | |
| files = angular.isArray(files) ? files : [files]; | |
| config.transformRequest = angular.identity; | |
| config.headers = config.headers || {}; | |
| config.headers['Content-Type'] = undefined; | |
| return fileAppender(files).then(function (formData) { |