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
<?xml version="1.0" encoding="UTF-8"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<profiles> | |
<profile> | |
<id>Repository Proxy</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> |
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
public class LambdaRequestHandler { | |
private PostTextRequest request = new PostTextRequest(); | |
public PostTextResult handleRequest(Map<String,Object> input, Context context) { | |
AmazonLexRuntimeClientBuilder builder = AmazonLexRuntimeClient.builder(); | |
AmazonLexRuntime client = builder.build(); | |
//Extract the querystring parameters from the API | |
Map<String, Object> params = (Map<String, Object>) input.get("params"); | |
Map<String, String> queryVars = (Map<String, String>) params.get("querystring"); |
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
#Please install first the tmux plugin support following this instructios: | |
#https://github.com/tmux-plugins/tpm | |
#Install the plugins on fisrt run using CTRL + A + I (capital) | |
#Based on http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ | |
#Set the prefix combinatio to CTRL + A | |
unbind C-b | |
set -g prefix C-a | |
# split panes using | and - |
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 | |
namespace App\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
class InstallOnPostMergeCommand extends ContainerAwareCommand | |
{ | |
const COMPOSER_JSON_FILE = 'composer.json'; |
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
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |
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
require '../../vendor/autoload.php'; | |
$filesArray = []; | |
foreach (glob("myFolder/*.xlsx") as $file) { | |
$type = PHPExcel_IOFactory::identify($file); | |
$reader = PHPExcel_IOFactory::createReader($type); | |
$reader->setReadDataOnly(true); | |
$excel = $reader->load($file); | |
$worksheet = $excel->getSheet(); | |
$toArrayFile = ($worksheet) ? $worksheet->toArray() : array(); |