Skip to content

Instantly share code, notes, and snippets.

Raul Fraile raulfraile

Block or report user

Report or block raulfraile

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View study_group.md

Study group

The goal of the study group is to learn together cool/advanced/edge stuff that we are not used to see in the PHP world, such as:

  • Turing machines
  • Data mining
  • Esoteric languages
  • Database internals
  • Data structures
  • Algorithms
View servergrove_mail_checker.php
<?php
<<<CONFIG
packages:
- "swiftmailer/swiftmailer: ~5.0"
CONFIG;
$from = $argv[1];
$to = $argv[2];
$transport = \Swift_SmtpTransport::newInstance('mail.servergrove.com', 25)
@raulfraile
raulfraile / servergrove.com.har
Created Apr 30, 2015
servergrove.com HAR file
View servergrove.com.har
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
View jsonlint.php
<?php
<<<CONFIG
packages:
- "seld/jsonlint: 1.3.1"
CONFIG;
use Seld\JsonLint\JsonParser;
$parser = new JsonParser();
@raulfraile
raulfraile / kernel
Created Jul 21, 2011
prueba symfony
View kernel
<?php
namespace { require_once __DIR__.'/autoload.php'; }
namespace Symfony\Component\DependencyInjection
{
@raulfraile
raulfraile / gist:1261181
Created Oct 4, 2011
Colorear errores Symfony2 + Twig + Twitter Bootstrap
View gist:1261181
{% block field_row %}
<div class="clearfix{% if errors|length > 0 %} error{% endif %}">
...
{% endblock %}
View gist:1761071
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect), using UTF-* [ext/xml/tests/bug32001.phpt]
=====================================================================
@raulfraile
raulfraile / gist:1887653
Created Feb 22, 2012
Colecciones en formularios de Symfony
View gist:1887653
/* Form hijo */
<?php
namespace Acme\Bundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class HijoType extends AbstractType
View gist:1887983
/**
* @var Padre
*
* @ORM\ManyToOne(targetEntity="Padre")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="padre_id", referencedColumnName="id")
* })
*/
private $padre;
View gist:1893666
/**
* @ORM\OneToMany(targetEntity="Hija", mappedBy="padre", cascade={"persist", "remove"})
*/
private $hijas;
You can’t perform that action at this time.