Skip to content

Instantly share code, notes, and snippets.

View mikeemoo's full-sized avatar

Mikeemoo mikeemoo

  • Leeds, United Kingdom
View GitHub Profile
{
"_id" : "sha256:05408207bbf5bd8a2083a4d14defbc743663fa6fb1101fc88c05ef02d7457683",
"classTransformers" : [
"openblocks.asm.OpenBlocksClassTransformer"
],
"filenames" : [
"OpenBlocks-Experimental-1.2.2-snapshot-75.jar"
],
"mods" : [
{
define(['core/Renderer'], function (Renderer) {
"use strict";
return new (Renderer.extend({
render: function (target, delta, game) {
var viewport = game.getViewport();
var canvas = viewport.getCanvas();
class Player extends Actor
{
function setRenderer(IPlayerRenderer) {}
function render(game, delta) {
this.renderer.render(this);
}
}
class CanvasPlayerRenderer extends CanvasRenderer implements IPlayerRenderer
{
<?php
namespace Lowpress\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorColumn(name="discr", type="string")
@mikeemoo
mikeemoo / InheritanceListener.php
Created May 29, 2012 15:24
InheritanceListener
<?php
namespace Lowpress\CmsBundle\Doctrine;
use Doctrine\ORM\Events;
use Doctrine\ORM\Mapping\ClassMetadataInfo;
class InheritanceListener implements \Doctrine\Common\EventSubscriber {
private $driver;
@mikeemoo
mikeemoo / LowpressCmsBundle.php
Created May 29, 2012 15:23
LowpressCmsBundle
<?php
namespace Lowpress\CmsBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle,
Lowpress\CmsBundle\Doctrine\InheritanceListener;
class LowpressCmsBundle extends Bundle
{
@mikeemoo
mikeemoo / ExampleInheritanceFunctionalTest.php
Created May 29, 2012 14:56
ExampleInheritanceFunctionalTest
<?php
namespace Lowpress\ExampleBundle\Tests\Entity;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class ExampleInheritanceFunctionalTest extends WebTestCase
{
/**
@mikeemoo
mikeemoo / InheritanceFunctionalTest.php
Created May 29, 2012 14:55
InheritanceFunctionalTest
<?php
namespace Lowpress\CmsBundle\Tests\Entity;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class InheritanceFunctionalTest extends WebTestCase
{
/**
@mikeemoo
mikeemoo / LoadContentPageData.php
Created May 29, 2012 14:54
LoadContentPageData
<?php
namespace Lowpress\ExampleBundle\DataFixtures\ORM;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Lowpress\ExampleBundle\Entity\ContentPage;
class LoadContentPageData extends AbstractFixture implements OrderedFixtureInterface
<?php
namespace Lowpress\CmsBundle\DataFixtures\ORM;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Lowpress\CmsBundle\Entity\Path;
use Lowpress\CmsBundle\Entity\HtmlPage;