Skip to content

Instantly share code, notes, and snippets.

@shipleyr
shipleyr / flexbox.less
Created March 11, 2015 14:44
Can't remember exactly where I got the basic flexbox.less file from but I added new style definitions to it to cover everything I need.
// display: inline-flex //
// applies to flex container
.inline-flexbox() {
// 2009 spec
display: -webkit-box;
display: -moz-box;
display: -ms-box;
display: -o-box;
display: box;
@shipleyr
shipleyr / viewhelpers.config.php
Created November 17, 2014 12:44
Application Config
//===========================================
// Gives a can't use return value in write context error
isset($vhm->getServiceLocator()->get('Config')['somevalue']);
//===========================================
// Is this not wasteful?
$config = $vhm->getServiceLocator()->get('Config');
...
...
$this->add(
array(
'name' => 'date',
'type' => 'datetime',
'options' => array(
'format' => 'd/m/Y H:i:s',
'label' => 'Date (format: dd/mm/yyyy hh:mm:ss)',
),