Skip to content

Instantly share code, notes, and snippets.

View svparijs's full-sized avatar

Sebastiaan van Parijs svparijs

View GitHub Profile
@svparijs
svparijs / PdfJob.php
Last active August 29, 2015 14:06 — forked from bwaidelich/PdfJob.php
<?php
namespace Acme\JobQueueTest;
/* *
* This script belongs to the TYPO3 Flow package "Acme.JobQueueTest". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Utility\Files;
<?php
namespace Smichaelsen\Gist\Mail;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext;
/**
* This class represents an email which can be rendered with fluid.
* You can use all the possibilities of TYPO3's MailMessage but instead of
<?php
namespace My\Package\Service;
use TYPO3\Flow\Annotations as Flow;
/**
* @Flow\Scope("singleton")
*/
class EmailService {
<?php
namespace Acme\JobQueueTest;
/* *
* This script belongs to the TYPO3 Flow package "Acme.JobQueueTest". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Utility\Files;
<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>
##
# Fallback route
-
name: 'fallback'
uriPattern: ''
defaults:
'@package': 'TYPO3.Flow'
'@subpackage': 'Mvc'
'@controller': 'Standard'
#!/bin/bash
if [ ! -d "Web" -o ! -d "Packages" -o ! -d "Configuration" ]; then
echo Make sure you run this from the TYPO3 Flow root directory!
echo
exit 1
fi
BASE_DIR=$(pwd)
//TEMPLATE
{{#linkTo account account}}View{{/linkTo}}
//ROUTER
App.Router.map(function() {
this.resource('accounts', function() {
//this.route('account', { path: ':accountguid' });
});
this.resource('account', { path: '/accounts/:accountguid' });
});
function(doc) { emit(
[
doc.city,
'indicator_beroepsbevolking',
parseInt(doc.date.substr(0, 4))
App.Person = DS.Model.extend({
firstName: DS.attr('string'),
lastName: DS.attr('string'),
fullName: function() {
return this.get('firstName') + ' ' + this.get('lastName');
}.property('firstName', 'lastName'),
didLoad: function() {
console.log(this.get('fullName') +" finished loading.");