Skip to content

Instantly share code, notes, and snippets.

View radmiraal's full-sized avatar

Rens Admiraal radmiraal

View GitHub Profile
#cf {
position:relative;
height:200px;
width:200px;
margin:0 auto;
}
#cf .box {
position:absolute;
left:0;
#!/usr/bin/php
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL ^ E_STRICT);
define('FLOW_PATH_ROOT', __DIR__ . DIRECTORY_SEPARATOR);
define('FLOW_PATH_PACKAGES', FLOW_PATH_ROOT . 'Packages' . DIRECTORY_SEPARATOR);
class Gerrit {
<?php
use TYPO3\Surf\Domain\Model\Node;
use TYPO3\Surf\Domain\Model\SimpleWorkflow;
$application = new \TYPO3\Surf\Application\TYPO3\Flow();
$application->setOption('version', getenv('VERSION'));
$application->setOption('repositoryUrl', getenv('REPOSITORY'));
$application->setOption('localPackagePath', FLOW_PATH_DATA . 'Checkout' . DIRECTORY_SEPARATOR . $deployment->getName() . DIRECTORY_SEPARATOR . getenv('DEPLOYMENT_NAME') . DIRECTORY_SEPARATOR);
$application->setOption('composerCommandPath', getenv('COMPOSER_PATH') ? getenv('COMPOSER_PATH') : '/usr/bin/composer');
$application->setOption('transferMethod', 'rsync');
page.body {
sections {
main = TYPO3.Neos.NodeTypes:Plugin {
package = 'Radmiraal.RensadmiraalNl'
subpackage = 'Plugins'
# package = 'RobertLemke.Plugin.Blog'
controller = 'Post'
action = 'index'
}
}
fruit1: apple
fruit2: pear
fruit3: banana
fruit4: cherry
:
{/f:for}
public function showAction() {
if ($this->request->getFormat() === 'pdf') {
header('Content-Type: application/pdf');
$pdf = new \Knp\Snappy\Pdf('/usr/bin/wkhtmltopdf.sh');
echo $pdf->getOutputFromHtml($this->view->render());
return '';
}
}
<?php
class Tx_Something_ViewHelpers_Format_DateViewHelper extends Tx_Fluid_ViewHelpers_Format_DateViewHelper {
/**
* Render the supplied DateTime object as a formatted date.
*
* @param mixed $date either a DateTime object or a string that is accepted by DateTime constructor
* @param string $format Format String which is taken to format the Date/Time
"name": "some/package",
"description" : "",
"config": {
"vendor-dir": "Packages/Libraries",
"bin-dir": "bin"
},
"require": {
"typo3/flow": "2.0.0-beta1"
},
@radmiraal
radmiraal / gist:5299876
Created April 3, 2013 09:49
Using custom installer paths for specific packages so you can group them in a Packages/Custom folder for example (which can turn out pretty useful with codestyle checking over a full folder, running tests for just one group of packages, and so on). Put this code in your projects composer.json file.
{
"extra": {
"installer-paths": {
"Packages/Custom/{$name}/": ["composer/packagename1", "composer/packagename2"]
}
}
}
Problem 1
- Conclusion: don't install typo3/flow 2.0.x-dev
- Conclusion: don't install typo3/flow 2.0.x-dev
- Conclusion: don't install typo3/flow 2.0.0-beta1
- Conclusion: remove typo3/buildessentials dev-master
- Conclusion: don't install typo3/buildessentials dev-master
- Conclusion: don't install typo3/buildessentials dev-master|remove typo3/flow-composer-installers dev-master
- Conclusion: don't install typo3/flow-composer-installers dev-master|don't install typo3/buildessentials dev-master
- Installation request for typo3/flow 2.0.* -> satisfiable by typo3/flow 2.0.0-beta1, typo3/flow 2.0.x-dev.
- Installation request for typo3/buildessentials dev-master -> satisfiable by typo3/buildessentials dev-master.