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
| raul_fraile_ladybug: | |
| general: | |
| expanded: true |
| En estos momentos no podemos atenderle. Por favor vuelva a intentarlo pasado unos minutos. Disculpe las molestias. |
| <?php | |
| namespace Psr\Log; | |
| /** | |
| * Describes a logger instance | |
| */ | |
| interface LoggerInterface | |
| { | |
| /** |
| <?php | |
| public function load(ObjectManager $manager) | |
| { | |
| $jokes = array( | |
| 'There’s no place like 127.0.0.1', | |
| 'If at first you don’t succeed; call it version 1.0', | |
| 'You know it’s love when you memorize her IP number to skip DNS overhead', | |
| 'Beware of programmers that carry screwdrivers', | |
| 'What color do you want that database?' |
| <?php | |
| // validate input (don't allow jokes about java) | |
| $content = $request->request->get('content'); | |
| if (stripos($content, 'java') !== false) { | |
| throw new BadRequestHttpException('Java jokes are not allowed'); | |
| } |
| <?php | |
| use Symfony\Component\Validator\Constraint; | |
| use Symfony\Component\Validator\ConstraintValidator; | |
| class ContainsJavaValidator extends ConstraintValidator | |
| { | |
| public function validate($value, Constraint $constraint) | |
| { | |
| if (stripos($value, 'java') !== false) { |
| <?php | |
| <<<CONFIG | |
| packages: | |
| - "swiftmailer/swiftmailer: ~5.0" | |
| CONFIG; | |
| $from = $argv[1]; | |
| $to = $argv[2]; | |
| $transport = \Swift_SmtpTransport::newInstance('mail.servergrove.com', 25) |
| { | |
| "log": { | |
| "version": "1.2", | |
| "creator": { | |
| "name": "WebInspector", | |
| "version": "537.36" | |
| }, | |
| "pages": [ | |
| { | |
| "startedDateTime": "2015-04-30T11:03:32.737Z", |
| <?php | |
| <<<CONFIG | |
| packages: | |
| - "seld/jsonlint: 1.3.1" | |
| CONFIG; | |
| use Seld\JsonLint\JsonParser; | |
| $parser = new JsonParser(); |