- What tech stack do you use? Are you rolling out new technologies or sunsetting older ones? Do you have any legacy system that you need to maintain?
- What is your maturity stage? Finding a direction, feature work, maintenance...
- What are the next big engineering challenges you will face?
- How are requirements delivered to the engineering teams? How are technical decisions made and communicated?
- What level of involvement do engineers have in relation to architecture and system design? How much freedom for decision making do individual developers have? What happens if an engineer identifies areas of improvement?
- What is the junior/senior balance of the team?
This file contains 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
- Be highly organized. | |
- Suggest proactive solutions and anticipate my needs. | |
- Treat me as an expert in all subject matter. | |
- Be accurate and thorough; mistakes erode my trust. | |
- Provide detailed explanations; I appreciate lots of detail. | |
- Value good arguments over authorities; the source is irrelevant. | |
- Consider new technologies and contrarian ideas. | |
- High levels of speculation or prediction are fine; just flag it. | |
- Recommend only the highest-quality, meticulously designed products. | |
- Recommend products from all over the world; location is irrelevant. |
I hereby claim:
- I am lutacon on github.
- I am lutacon (https://keybase.io/lutacon) on keybase.
- I have a public key ASAAfQMWrdHvs0L5mI0tsuUSFATFwU0Fh5HW1PJPHQjQGQo
To claim this, I am signing this object:
This file contains 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
server { | |
charset utf-8; | |
#listen SERVER_IP:80; | |
server_name YOUR_SITE_DOMAIN www.YOUR_SITE_DOMAIN; | |
root ROOT_PATH_PRESTASHOP; | |
index index.php; | |
set $admin_dir /ADMIN_PATH; |
Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle
The API we are creating in this gist will follow these rules :
- The API only returns JSON responses
- All API routes require authentication
- Authentication is handled via OAuth2 with
password
Grant Type only (no need for Authorization pages and such). - API versioning is managed via a subdomain (e.g.
v1.api.example.com
)
The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :
This file contains 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 | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.6 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter | |
0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs |
This file contains 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
$('input.salida').change(function(event) { | |
if ($('input.llegada').val() != '' && $(this).val() != '') { | |
var fechaI = $('input.llegada').val().split('/'); | |
var date1 = new Date(fechaI[2], (fechaI[1] - 1), fechaI[0], 0, 0, 0, 0); | |
var fechaF = $(this).val().split('/'); | |
var date2 = new Date(fechaF[2], (fechaF[1] - 1), fechaF[0], 0, 0, 0, 0); | |
var timeDiff = Math.abs(date2.getTime() - date1.getTime()); | |
var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24)); | |
$('input.noches').val(diffDays); | |
} |
This file contains 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 | |
/** | |
* @see http://en.wikipedia.org/wiki/Luhn_algorithm | |
*/ | |
function is_valid_luhn($number) { | |
$number = preg_replace("/[^0-9]/", "", $number); | |
settype($number, 'string'); | |
$sumTable = array( | |
array(0,1,2,3,4,5,6,7,8,9), | |
array(0,2,4,6,8,1,3,5,7,9) |