Skip to content

Instantly share code, notes, and snippets.

View svparijs's full-sized avatar

Sebastiaan van Parijs svparijs

View GitHub Profile
@svparijs
svparijs / FunctionalTests.xml
Created December 13, 2012 12:40
Travis-CI Files
<?xml version="1.0"?>
<phpunit strict="true"
bootstrap="../BuildEssentials/PhpUnit/FunctionalTestBootstrap.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
timeoutForSmallTests="0">
<testsuites>
<testsuite name="All tests">
<directory>../../Packages/Application/*/Tests/Functional</directory>
@svparijs
svparijs / models.js
Created December 14, 2012 19:14
App.Person = DS.Model return NULL when finished loading.
App.Person = DS.Model.extend({
firstName: DS.attr('string'),
lastName: DS.attr('string'),
fullName: function() {
return this.get('firstName') + ' Test ' + this.get('lastName');
}.property('firstName', 'lastName'),
didLoad: function() {
console.log(this.get('firstName') + this.get('lastName') +" finished loading.");
@svparijs
svparijs / gist:4318210
Created December 17, 2012 13:17
Current Model
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() {
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.");
function(doc) { emit(
[
doc.city,
'indicator_beroepsbevolking',
parseInt(doc.date.substr(0, 4))
//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' });
});
#!/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)
##
# Fallback route
-
name: 'fallback'
uriPattern: ''
defaults:
'@package': 'TYPO3.Flow'
'@subpackage': 'Mvc'
'@controller': 'Standard'
<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>
<?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;