Daniel González desarrolla2

View UserController.php
1 2 3 4 5 6 7 8 9 10
<?php
/**
* This file is part of the lapera.local package.
*
* (c) Daniel González <daniel@desarrolla2.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LaPera\RestBundle\Controller;
View fast_feed_easy_to_use.php
1 2 3 4 5 6
<?php
use FastFeed\Factory;
 
$fastFeed = Factory::create();
$fastFeed->addFeed('default', 'http://desarrolla2.com/feed');
$items = $fastFeed->fetch('default');
View desarrolla2.com.conf
1 2 3 4 5 6 7 8 9 10
server {
listen 8080;
server_name www.desarrolla2.com blog.desarrolla2.com;
rewrite ^(.*) http://desarrolla2.com$1 permanent;
}
 
 
server {
 
listen 8080;
View DoctrineDbalStatementInterface.php
1 2 3 4 5 6 7 8 9 10
<?php
 
namespace Mocks;
 
use Doctrine\DBAL\Driver\Statement;
 
/**
* Doctrine DBAL Statement implementing \Iterator.
*
* This class has been created because of a bug in PHPUnit Mock Objects.
View DefaultController.php
1 2 3 4 5 6 7 8 9
<?php
 
namespace Desarrolla2\Bundle\AnalyticsBundle\Controller;
 
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\HttpFoundation\JsonResponse;
use Desarrolla2\Bundle\AnalyticsBundle\Entity\Data;
View gist:7216729
1 2 3 4 5 6 7 8 9
backend default {
 
.host = "127.0.0.1";
.port = "8080";
}
 
# vcl_recv (yes, we’re skimpy with characters, it’s Unix) is called at the beginning of a request, after the complete request has been received and parsed. Its purpose is to decide whether or not to serve the request, how to do it, and, if applicable, which backend to use.
# In vcl_recv you can also alter the request. Typically you can alter the cookies and add and remove request headers.
# Note that in vcl_recv only the request object, req is available.
View FormErrorTrait.php
1 2 3 4 5 6 7 8 9 10
<?php
 
/**
* @param $form
* @return array
*/
private function getErrorsAsArray($form)
{
$errors = [];
foreach ($form->getErrors() as $error) {
View example1.php
1 2 3 4 5 6 7 8 9 10
<?php
 
$record = 'OLA K ASE';
 
/**
* Log record
*
* @param string $record
*/
function log($record){
View PrimeNumber.php
1 2 3 4 5 6 7 8 9 10
<?php
 
/**
* This file is part of the planetubuntu proyect.
*
* Copyright (c)
* Daniel González <daniel.gonzalez@freelancemadrid.es>
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.
View cheatsheet.md

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

Something went wrong with that request. Please try again.