This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.js"></script> | |
<div id="song">Loading song...</div> | |
$(document).ready(function() { | |
$.post( | |
'http://example.com/get/song', | |
function(data) { | |
if (data.song !== '') { | |
$('#song').text(data.song); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace TYPO3\CMS\Core\Log\Writer; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2013 Steffen Müller ([email protected]) | |
* All rights reserved | |
* | |
* This script is part of the TYPO3 project. The TYPO3 project is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class FeatureContext extends MinkContext { | |
/** | |
* Take screenshot when step fails. Works only with Selenium2Driver. | |
* Screenshot is saved at [Date]/[Feature]/[Scenario]/[Step].jpg | |
* | |
* @AfterStep @javascript | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace T3node\Graylog2Writer\Log\Writer; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2013 Steffen Müller <[email protected]> | |
* | |
* All rights reserved | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// You need to create the files/ directory inside your document root to put your files. | |
if (substr($_SERVER['REQUEST_URI'], 0, 7) !== '/files/') { | |
die('not allowed'); | |
} | |
$absolutePath = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['REQUEST_URI']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Writing png image to file */ | |
$filename = vfsStream::url('root/test.png'); | |
// not testable with vfsStream | |
imagepng($image, $filename); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ php -S localhost:8000 index.php | |
$ curl http://localhost:8000/hello/world | |
<html> | |
<body> | |
<h1>Rendered with TYPO3.Fluid</h1> | |
Hello world | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Monolog\Processor; | |
use TYPO3\CMS\Core\Core\Bootstrap; | |
/** | |
* Adds TYPO3 requestId to records | |
*/ | |
class Typo3RequestIdProcessor | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace My\Ext\Scheduler\Task; | |
/** | |
* This file is part of the TYPO3 CMS project. | |
* | |
* It is free software; you can redistribute it and/or modify it under | |
* the terms of the GNU General Public License, either version 2 | |
* of the License, or any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
cache_directories: | |
- terraform_0.6.16 | |
pre: | |
- mkdir -p terraform_0.6.16 | |
- wget -O terraform_0.6.16/terraform_0.6.16_linux_amd64.zip https://releases.hashicorp.com/terraform/0.6.16/terraform_0.6.16_linux_amd64.zip | |
- unzip terraform_0.6.16/terraform_0.6.16_linux_amd64.zip | |
test: | |
override: |
OlderNewer