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 $this->form->prepare(); ?> | |
| <div class="row"> | |
| <!-- Contenido seleccionado en el menu de la izquierda --> | |
| <div class="col-md-9 col-md-push-3"> | |
| <div id="navigation_wrapper" style="display:none" class="navigation_content"> | |
| <?php echo $this->form()->openTag($this->form) . PHP_EOL; ?> | |
| <?php foreach($this->form->getElements() as $formElement):?> | |
| <div class="form-group"> |
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 | |
| $config = array( | |
| 'controllers' => array( | |
| 'manager' => array(), | |
| 'invokables' => array(), | |
| 'factories' => array(), | |
| 'plugins' => array() | |
| ), | |
| 'views' => array( | |
| 'manager' => 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
| for repo in $(cat repos-list.txt) | |
| do | |
| git clone user@host:/var/git/$repo | |
| cd /d/repos/$repo | |
| git remote add gitlab git@otherhost:group/$repo.git | |
| git push gitlab master | |
| for branch in $(git branch -r) | |
| do | |
| remote="${branch:0:6}" |
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
| { | |
| "name": "test/replace", | |
| "minimum-stability": "dev", | |
| "require": { | |
| "zendframework/zendframework": "~2.2", | |
| "doctrine/doctrine-orm-module": "0.8.*", | |
| "slm/mail": "~1.3" | |
| }, | |
| "require-dev": { | |
| "phpunit/phpunit": "~3.7" |
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 function getServiceConfig() | |
| { | |
| return array( | |
| 'factories' => array( | |
| 'auth' => function(ServiceManager $sm) { | |
| $db = $sm->get('Zend\Db\Adapter\Adapter'); | |
| $authAdapter = new \Zend\Authentication\Adapter\DbTable\CallbackCheckAdapter( | |
| $db, | |
| 'users', | |
| 'username', |
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 | |
| $header = <<<EOH | |
| /***************************************************************************** | |
| * Hacman Active Member RFIDs | |
| * Requirements: PHP 5.3+, PHP XMLRPC and CURL Extensions | |
| * | |
| * Options Available: | |
| * --------------------- | |
| * -h, --help shows this message | |
| * -u, --username the username for the RPC call |
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 | |
| protected function _initModules() | |
| { | |
| $moduleAutoloader = new Zend_Application_Module_Autoloader(array( | |
| 'namespace' => '', | |
| 'basePath' => APPLICATION_PATH . '/modules/default' | |
| )); |
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
| <div class="speech-l"> | |
| <h4>Brands</h4> | |
| <ul> | |
| <li><a class="all" href="#">Hello</a> | |
| </li> | |
| <li><a class="all" href="#">Joe Rocket <em>(57)</em></a> | |
| </li> |
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
| <div class="speech-l"> | |
| <h4>Brands</h4> | |
| <ul> | |
| <li><a class="all" href="#">Hello</a> | |
| </li> | |
| <li><a class="all" href="#">Joe Rocket <em>(57)</em></a> | |
| </li> |
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
| add_filter("gform_address_types", "uk_address", 10, 2); | |
| function uk_address($address_types, $form_id) | |
| { | |
| $address_types["uk"] = array( | |
| "label" => "UK", | |
| "country" => "United Kingdom", | |
| "zip_label" => "Postcode", | |
| "state_label" => "County", | |
| "states" => array( |