This file contains 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
;(function() { | |
'use strict'; | |
function Uploader() { | |
AWS.config.update({ | |
accessKeyId: '', | |
secretAccessKey: '' | |
}); | |
AWS.config.region = 'us-east-1'; |
This file contains 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
# circle.yml | |
machine: | |
services: | |
- docker | |
dependencies: | |
override: | |
- sudo pip install --upgrade docker-compose==1.3.0 | |
- ./compose-development build |
This file contains 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
[user] | |
name = Harry Walter | |
email = *********** | |
[branch "master"] | |
remote = origin | |
merge = refs/heads/master | |
[color] | |
diff = auto |
This file contains 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 Versionable\Ration\Stream; | |
/** | |
* Dummy stream wrapper for unit tests | |
* | |
* @author Harry Walter <harry.walter@lqdinternet.com> | |
*/ | |
class TestWrapper |
This file contains 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
protected function parseResponse($raw) | |
{ | |
$raw = trim($raw); | |
$response = null; | |
switch (substr($raw, 0, 1)) { | |
case '-': | |
throw new ResponseException(substr($raw, 4)); | |
break; | |
case '+': |
This file contains 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
{% for competition in competitions %} | |
<tr> | |
<td>{{ competition.title }}</td> | |
<td>{{ competition.searchPhrase }}</td> | |
<td>{{ competition.openAt|date }}</td> | |
<td>{{ competition.closeAt|date }}</td> | |
<td>{{ competition.total }}</td> | |
</tr> | |
{% endfor %} |
This file contains 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\Bundle\ExampleBundle\Entity; | |
use \Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
* @ORM\Table(name="product_variants", indexes={ | |
* @ORM\index(name="variant_name_idx", columns={"name"}) |
This file contains 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 UKWM\Bundle\DictionaryBundle\Entity; | |
use \Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
* @ORM\Table(name="dictionary_colours", indexes={ | |
* @ORM\Index(name="text_idx", columns={"text"}) |
This file contains 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 UKWM\Bundle\DictionaryBundle\Entity; | |
use \Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\MappedSuperclass | |
*/ | |
class Definition |
This file contains 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 getSubscribedEvents() | |
{ | |
return array(Events::postPersist); | |
} | |
public function postPersist(LifecycleEventArgs $args) | |
{ | |
$em = $args->getEntityManager(); | |
$uow = $em->getUnitOfWork(); |
NewerOlder