Skip to content

Instantly share code, notes, and snippets.

<?php
namespace My\Package\Service;
use TYPO3\Flow\Annotations as Flow;
/**
* @Flow\Scope("singleton")
*/
class EmailService {
<?php
namespace My\Package\Service;
use TYPO3\Flow\Annotations as Flow;
/**
* @Flow\Scope("singleton")
*/
class EmailService {
<?php
namespace Ag\Utility\Log\Backend;
use TYPO3\Flow\Annotations as Flow;
class EmailBackend extends \TYPO3\Flow\Log\Backend\AbstractBackend {
/**
* @var string|array
*/
( function ( window, undefined ) {
var Aloha = window.Aloha || ( window.Aloha = {} );
Aloha.settings = {
logLevels: { 'error': true, 'warn': true, 'info': true, 'debug': false, 'deprecated': true },
errorhandling: false,
ribbon: false,
locale: 'en',
floatingmenu: {
width: 630,
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://npmjs.org/install.sh | sh
<?php
// Convert the Facebook IETF RFC 3339 datetime to timestamp format
$created_time = "2011-07-06T08:06:28+0000";
$date_source = strtotime($created_time);
$timestamp = date('Y-m-d H:i:s', $date_source);
?>
SQL:
images int(11) unsigned DEFAULT '0',
=======================================================
TCA
....
'images' => array(
'exclude' => 0,
'label' => 'images',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagerUtility::getFileFieldTCAConfig('images')
),
@jpgreth
jpgreth / Menu.html
Created December 11, 2013 14:57 — forked from bwaidelich/Menu.html
<ul class="nav{f:if(condition: menuClass, then: ' {menuClass}')}"<f:for each="{menu.attributes}" as="attributeValue" key="attributeName"> {attributeName}="{attributeValue}"</f:for>>
<f:for each="{menu.menuItems}" as="menuItem" iteration="iteration">
<f:if condition="{menuItem.header}">
<f:then>
<li class="nav-header {menuItem.class}"<f:for each="{menuItem.attributes}" as="attributeValue" key="attributeName"> {attributeName}="{attributeValue}"</f:for>>{menuItem.label}</li>
</f:then>
<f:else>
<f:if condition="{menuItem.separator}">
<f:then>
<li class="divider {menuItem.class}"<f:for each="{menuItem.attributes}" as="attributeValue" key="attributeName"> {attributeName}="{attributeValue}"</f:for>></li>
@jpgreth
jpgreth / User.php
Created December 9, 2013 16:05 — forked from Ocramius/User.php
Nice showing of Doctrine OneToMany and ManyToOne
<?php
namespace HelloWorld;
use InvalidArgumentException;
/**
* This class is somewhere in your library
* @Entity
* @Table(name="users")
*/