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
| namespace Core\MainBundle\Entity; | |
| use Doctrine\ORM\EntityRepository; | |
| use Core\MainBundle\Entity\user; | |
| class userRepository extends EntityRepository | |
| { | |
| public function findUserByEmail($email, $password) | |
| { | |
| $query = $this->getEntityManager() |
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
| <VirtualHost *:80> | |
| ServerName local.test-nearsoft | |
| DocumentRoot /home/lbarreras/work/documentationTest/nearsoft-php-seleniumclient/web | |
| DirectoryIndex index.php | |
| ErrorLog /var/log/apache2/test-php-selenium-documentation-error.log | |
| CustomLog /var/log/apache2/test-php-selenium-documentationaccess.log combined | |
| <Directory "/home/lbarreras/work/documentationTest/nearsoft-php-seleniumclient"> | |
| AllowOverride All | |
| Allow from All | |
| </Directory> |
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
| //The module pattern | |
| var feature = (function() { | |
| var sidewaysTriangle = function(n) { | |
| for(var i=0; i<n; i++) | |
| { | |
| var output = ""; | |
| for(var j=0; j<=i; j++) | |
| { | |
| output+="*"; |
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
| var feature = (function () { | |
| //code goes here | |
| })(); |
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
| interface Mailer { | |
| public void send(); | |
| } | |
| class Gmail implements Mailer { | |
| public void send() { | |
| //....send mail | |
| } | |
| } |
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
| public class User { | |
| private MessageManager contactManager; | |
| private MessageManager messageManager; | |
| public construct(contactManager, messageManager) | |
| this.contactManager = contactManager; | |
| this.messageManager = messageManager; | |
| } | |
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
| public void function queue(Node node) { | |
| stackToStore.push(node); | |
| } | |
| public Node function dequeue() { | |
| if(stackToRetrive.top==null) { | |
| while(stackToStore.top!=null) { | |
| Node tmp = stackToStore.pop(); | |
| stackToRetrive.push(tmp); | |
| } |
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
| git config core.filemode false |
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
| ini_set('display_startup_errors',true); | |
| ini_set('display_errors',true); | |
| return array(); |
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
| git config --global credential.helper 'cache --timeout=3600' |
OlderNewer