Skip to content

Instantly share code, notes, and snippets.

View andriesss's full-sized avatar

Andriesss andriesss

  • Egeniq
  • Belgium
View GitHub Profile
<?php
namespace Stca\Form\Element;
class RenderViewScript extends \Zend_Form_Element
{
/**
* File name of view script
* @var string
*/
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
@andriesss
andriesss / gist:4327496
Created December 18, 2012 12:13
PHP crashes when I try to add a PHPUnit test to the stack.
System
- Provider
[ Name] Application Error
- EventID 1000
[ Qualifiers] 0
<?php
$user = new User();
$user->addComment(new Comment('foo'));
$user->addComment(new Comment('baz'));
$user->addComment(new Comment('bar'));
$em->persist($user); // i only want the "user" object to be persisted, not the whole object graph
$em->flush();
<?php
/**
$stream = new Modbus('127.0.0.1');
$stream->connect();
//var_dump($stream->writeSingleRegister(10, 10, 1));
var_dump($stream->writeSingleCoil(1, 0));
var_dump($stream->readCoil(1, 1));die;
**/
<?php
interface Mikado
{
public function searchFreeStick();
public function removeStick($i);
}
class MikadoCollectionQueue implements Mikado
{
<?php
namespace Anse\Xmpp;
use Anse\Xmpp\Message\MessageInterface;
class Stream
{
/**
* @var string
public function getChangedReadStreams()
{
$read = array($this->socket);
$write = array();
$except = array();
return stream_select($read, $write, $except, 5);
}
/**
<?php
namespace Anse\Xmpp;
use Anse\Xmpp\Message\MessageInterface;
class Stream
{
/**
* @var string
<!-- this label used to have a for="plane_colors" tag -->
<label class="desc optional">Kleurenpalet</label>
<label><input name="plane_colors[]" id="plane_colors-1" value="1" type="checkbox">Wit (100, 100, 100)</label><br>
<label><input name="plane_colors[]" id="plane_colors-2" value="2" checked="checked" type="checkbox">Rood (100, 0, 0)</label><br>
<label><input name="plane_colors[]" id="plane_colors-3" value="3" checked="checked" type="checkbox">Geel (100, 100, 0)</label><br>
<label><input name="plane_colors[]" id="plane_colors-4" value="4" type="checkbox">Groen (0, 100, 0)</label><br>
<label><input name="plane_colors[]" id="plane_colors-5" value="5" type="checkbox">Blauw (0, 0, 100)</label><br>
<label><input name="plane_colors[]" id="plane_colors-6" value="6" type="checkbox">Fullcolor (-, -, -)</label></div></li>