Skip to content

Instantly share code, notes, and snippets.

View skurfuerst's full-sized avatar
☀️

Sebastian Kurfürst skurfuerst

☀️
View GitHub Profile
SC.View.extend({
template: SC.Handlebars.compile('{{#collection people}} XY {{/collection}}'),
people: [ SC.Object.create({ name: 'Steph' }),
SC.Object.create({ name: 'Tom' }) ]
});
var propertyPanelView = SC.View.create({ //
template: SC.Handlebars.compile('A{{#each schema}}\
XX{{key}}{{label}} {{thestuff}}\
x{{#each thestuff}} ASDF {{/each}}y\
{{/each}}'),
schema: [
{
key: 'Plugin Settings',
label: 'huhu',
thestuff: [
*Example: Declaration of an aspect*
.. code-block::php
namespace F3\MySecurityPackage;
/**
* An aspect implementing security for Foo
*
* @author John Doe <[email protected]>
<?php
public function harvest() {
// taken from AbstractTemplateView::render
$this->baseRenderingContext->setControllerContext($this->controllerContext);
$this->templateParser->setConfiguration($this->buildParserConfiguration());
$templateIdentifier = $this->getTemplateIdentifier(NULL);
if ($this->templateCompiler->has($templateIdentifier)) {
$parsedTemplate = $this->templateCompiler->get($templateIdentifier);
<?php
use \TYPO3\Deploy\Domain\Model\Workflow;
use \TYPO3\Deploy\Domain\Model\Node;
use \TYPO3\Deploy\Domain\Model\SimpleWorkflow;
$application = new \TYPO3\Deploy\Application\TYPO3();
$application->setOption('repositoryUrl', 'git://git.typo3.org/TYPO3v5/Distributions/Base.git');
$application->setDeploymentPath('/Volumes/data/htdocs/phoenixdemo/');
skurfuerst:gcli sebastian$ node Makefile.dryice.js
Building built/gcli[-uncompressed].js:
node.js:205
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object #<Object> has no method 'forEach'
at CommonJsProject.require (/Volumes/data/Users/sebastian/node_modules/dryice/lib/dryice/index.js:392:20)
at /Volumes/data/Users/sebastian/node_modules/dryice/lib/dryice/index.js:461:25
at Array.forEach (native)
chan=client.openProcessChannel();
connect(chan,SIGNAL(readyRead()),this,SLOT(readyRead()));
chan->start("ls\n");
void MyClass::readyRead() {
qDebug() << "ready read";
qDebug()<<chan->readAll();
}
@skurfuerst
skurfuerst / gist:1197463
Created September 6, 2011 12:58
FLOW3 - Standard Performance vs Appserver-in-PHP
Test case: A very simple FLOW3 page, empty controller, a simple fluid template with a layout.
CONCURRENCY = 2; 100 REQUESTS; APACHE
=====================================
Elapsed time (s): 12.52
Requests per second: 7.99
Mean time per request (ms): 250.16
Time per request standard deviation: 84.77
Percentages of requests served within a certain time (ms)
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
('index', 'ExposingDomainModelsasLinkedData.tex', u'Exposing Domain Models as Linked Data',
u'Sebastian Kurfürst', 'manual'),
]
latex_elements = {
'papersize': 'a4paper',
'pointsize': '11pt',
class Repository implements \TYPO3\FLOW3\Persistence\RepositoryInterface {
/**
* @var \TYPO3\FLOW3\Persistence\PersistenceManagerInterface
*/
protected $persistenceManager;
/**
* Warning: if you think you want to set this,
* look at RepositoryInterface::ENTITY_CLASSNAME first!