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 | |
namespace CliCons\ExtranetBundle\Form\Type; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
class ConstructionFormType extends AbstractType | |
{ |
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
/** @var Ivory\GoogleMapBundle\Model\Map */ | |
$map = $this->get('ivory_google_map.map'); | |
$infoWindow = $this->get('ivory_google_map.info_window'); | |
$marker = $this->get('ivory_google_map.marker'); | |
$map->setMapOption('zoom', 4); | |
$map->setMapOption('mapTypeId', 'roadmap'); | |
$map->setStylesheetOptions(array( | |
'width' => '100%', |
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 findByPosition($latitude=40.46366700000001, $longitude=-3.7492200000000366, $distance=1500) | |
{ | |
$config = $this->getEntityManager()->getConfiguration(); | |
$config->addCustomNumericFunction('COS', 'DoctrineExtensions\Query\Mysql\Cos'); | |
$config->addCustomNumericFunction('ACOS', 'DoctrineExtensions\Query\Mysql\Acos'); | |
$config->addCustomNumericFunction('RADIANS', 'DoctrineExtensions\Query\Mysql\Radians'); | |
$config->addCustomNumericFunction('SIN', 'DoctrineExtensions\Query\Mysql\Sin'); | |
$qb = $this->createQueryBuilder('d') | |
->add('from','CliConsCoreBundle:User u') |
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
ls app/DoctrineMigrations | sed 's/[^0-9]*//g' | xargs -L 1 app/console doctrine:migrations:version --add |
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
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dwh="http://dwh.sejer.com/"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<dwh:getLink> | |
<!--Optional:--> | |
<gencode> EBOOKSTORE</gencode> | |
<!--Optional:--> | |
<password> ORVnM7eqAf</password> | |
<!--Optional:--> | |
<outletName>EBOOKSTORE-TEST</outletName> |
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
class WouzeeEventListener | |
{ | |
protected $eventDispatcher; | |
public function __construct(EventDispatcherInterface $eventDispatcher) | |
{ | |
$this->eventDispatcher = $eventDispatcher; |
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
wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash |
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 | |
namespace Circuit\AppBundle\CsvModel; | |
use Circuit\AppBundle\Entity\Inscription; | |
use EasyCSV\Writer; | |
/** | |
* Class UserExportCsvWriter. | |
*/ |
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 | |
namespace Circuit\AppBundle\Twig; | |
use Circuit\AppBundle\Entity\Category; | |
use Circuit\AppBundle\Entity\Competition; | |
use Circuit\AppBundle\Entity\CompetitionSeason; | |
use Circuit\AppBundle\Entity\Event; | |
use Circuit\AppBundle\Entity\Race; | |
use Circuit\AppBundle\Enum\GenderEnum; |
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
<VirtualHost *:80> | |
ServerName circuit.local | |
DocumentRoot /home/marc/work/circuit/web | |
<Directory /home/marc/work/circuit/web> | |
# enable the .htaccess rewrites | |
AllowOverride All | |
Require all granted | |
</Directory> |