| Models | Examples |
|---|---|
| Display ads | Yahoo! |
| Search ads |
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 Acme\DemoBundle\EventListener; | |
| use Symfony\Component\Routing\RouterInterface; | |
| class ConsoleListener | |
| { | |
| /** | |
| * @var RouterInterface |
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 Acme\PeopleSoftBundle\Listener; | |
| use Doctrine\DBAL\Event\ConnectionEventArgs; | |
| use Doctrine\DBAL\Events; | |
| use Doctrine\Common\EventSubscriber; | |
| /** | |
| * Changes Doctrine's default Oracle-specific column type mapping to Doctrine |
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
| #!/bin/bash | |
| # Put this file at: .git/hooks/post-checkout | |
| # and make it executable | |
| # You can install it system wide too, see http://stackoverflow.com/a/2293578/685587 | |
| PREV_COMMIT=$1 | |
| POST_COMMIT=$2 | |
| NOCOLOR='\e[0m' |
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
| // create an index with an analyzer "myindex" | |
| curl -X PUT localhost:9200/myindex -d ' | |
| { | |
| "settings" : {` | |
| "index":{ | |
| "number_of_replicas":0, | |
| "number_of_shards":1, | |
| "analysis":{ | |
| "analyzer":{ | |
| "first":{ |
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
| #Postgresql 9.2.1 Compilation instructions for Ubuntu 12.04 | |
| #This will install Postgresql 9.2.1 into /usr/local/postgresql-9.2.1 | |
| #This assumes that you have sudo provileges on the machine installing postgresql | |
| #It should work by copying and pasting into the shell, I haven't tested it, I just summarized | |
| #what I just did and it worked | |
| #Get requirements | |
| sudo apt-get install build-essential libreadline6-dev zlib1g-dev |
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
| jQuery(function($) { | |
| $('form[data-async]').live('submit', function(event) { | |
| var $form = $(this); | |
| var $target = $($form.attr('data-target')); | |
| $.ajax({ | |
| type: $form.attr('method'), | |
| url: $form.attr('action'), | |
| data: $form.serialize(), |
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
| Day 1 (Track A): | |
| Keynote - Fabien Potencier | |
| Security: In Real Life - Johannes S | |
| https://speakerdeck.com/u/schmittjoh/p/security-in-real-life | |
| How we built the new responsive BBC News site - John Cleveley | |
| https://speakerdeck.com/u/jcleveley/p/how-we-built-the-new-responsive-bbc-news-site |
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 | |
| /** | |
| Truncate Html string without stripping tags | |
| register in Resources/config/services.yml with: | |
| services: | |
| truncatehtml.twig.extension: | |
| class: Radley\TwigExtensionBundle\Extension\TruncateHtmlExtension | |
| tags: | |
| - { name: twig.extension } |