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 Book implements ItemInterface | |
{ | |
/** | |
* @var string | |
*/ | |
private string $title; | |
/** |
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
# [1,5,948,139,3,11] ---> [11,3,139,948,5,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
#!/usr/bin/env bash | |
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
# Versions | |
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` |
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 code is missing: | |
* -a way to inject the dependecy for Motor | |
* -a way to accept multiple kinds of Motors as a dependecy | |
**/ | |
class Coche | |
{ | |
/** | |
* @var Motor |
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
array(3) { | |
[0]=> | |
array(15) { | |
[0]=> | |
int(1) | |
[1]=> | |
int(2) | |
[2]=> | |
int(3) | |
[3]=> |
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
+5 años de experiencia: | |
- Dominio de al menos 1 lenguaje scripting (PHP, Python, Ruby) | |
- Manejo de Framework MVC (Zend,Symfony,Laravel, RoR, Django) | |
- Design Patterns | |
- Bases de Datos Relacionales (MSSQL, Oracle, MySQL) | |
- Base de datos No Relacioales (MongoDB, Redis, CouchDB) | |
- Inglés Fluído | |
Desable |
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
Plugins Managers, Service Manager and Service Locator: solving the confusion. | |
Goal: Clarify the confusion between the Service Locator pattern and the ZF2's Service Manager implementations including the plugin managers. | |
1.- I will talk about the Service Locator pattern, what it is, what kind of problems it solves,(perhaps talking a bit about what a service is). | |
2.- Later, i will explain the ZF2's Service Manager implementation, how to configure it, how to use it, how to avoid some common mistakes | |
3.-Finally, i will talk about the plugin managers,how they are some kind of clones of the Service Manager but its purpose is just to serve one kind of service,and i will emphasize on the benefits of using them and ofcourse that they have some minor traps. |
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 | |
/** | |
* Zend Framework (http://framework.zend.com/) | |
* | |
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository | |
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license http://framework.zend.com/license/new-bsd New BSD License | |
*/ | |
/** |
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 | |
$rango=range(5, 1); | |
$flipper=array_flip($rango); | |
$reverse=array_reverse($rango); | |
var_dump($rango); | |
var_dump($flipper); | |
var_dump($reverse); |
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 | |
// Start of mongo v.1.1.4 | |
class Mongo { | |
const DEFAULT_HOST = "localhost"; | |
const DEFAULT_PORT = 27017; | |
const VERSION = "1.1.4"; | |
public $connected; |