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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<link href="style.css" rel="stylesheet" /> | |
</head> | |
<body> |
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 | |
/* | |
* This file is part of the Sylius package. | |
* | |
* (c) Paweł Jędrzejewski | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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
async (event, steps) => { | |
const CircleCI = require("circleci-api"); | |
const options = { | |
token: process.env.CIRCLECI_TOKEN, | |
vcs: { | |
type: process.env.CIRCLECI_REPOSITORY_PLATFORM, | |
owner: process.env.CIRCLECI_OWNER, | |
repo: process.env.CIRCLECI_REPOSITORY, | |
}, |
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 AppBundle\Form\Type\SearchFilters; | |
use AppBundle\Entity\Category; | |
use AppBundle\Entity\Product; | |
use AppBundle\Entity\Specialty; | |
use AppBundle\Entity\SubCategory; | |
use AppBundle\Entity\User; | |
use AppBundle\Entity\Venue; |
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
function getPaginatedElements(getResourcePromise, progressFn, limit = 25, offset = 0, elements = []) { | |
return new Promise((resolve, reject) => | |
getResourcePromise({limit, offset}) | |
.then(response => { | |
const newElements = elements.concat(response.records); | |
if (response.records.length === 0) { | |
resolve(newElements); | |
} else { | |
progressFn && progressFn(elements); | |
getPaginatedElements(getResourcePromise, progressFn, limit, offset+limit, newElements) |
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
{% extends 'SonataAdminBundle::standard_layout.html.twig' %} | |
{% block side_bar_after_nav %} | |
YOUR CUSTOM MENU | |
{% endblock %} |
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
Eliminar todos contenedores | |
$ docker rm $(docker kill $(docker ps -aq)) | |
Eliminar todas imágenes | |
$ docker rmi $(docker images -qf "dangling=true") |
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
class ArrayMergeUtil | |
{ | |
/** | |
* @param array $array | |
* | |
* @return array | |
*/ | |
public static function flatArrayAndSumValues(array $array) | |
{ | |
$result = []; |
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
/** | |
* Image Resize | |
* | |
* @param $attachment_id | |
* @param $width | |
* @param $height | |
* @param bool $crop | |
* @return bool|string | |
*/ | |
function rw_image_resize( $attachment_id, $width, $height, $crop = true ) |
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 AppBundle\EventListener; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
use Symfony\Component\HttpKernel\Exception\HttpException; | |
/** |
NewerOlder