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 ProjectController extends BaseController implements ProjectCreatorDelegate | |
{ | |
public function store() | |
{ | |
$creator = new ProjectCreator($this); | |
return $creator->create(Input::all()); | |
} |
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 | |
/* | |
assuming the following folder structure: | |
typo3conf/ | |
| | |
L ext/ | |
L domainconfig/ | |
| | |
L domain-global.inc.php | |
L domain-de.inc.php |
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
/** | |
* EXAMPLE FEATURE UPDATE | |
* Enable and revert the my_new_feature_name feature. | |
*/ | |
function example_update_7001() { | |
// An array of new or changed features; the array keys are feature names, | |
// values are an array of exportable types as seen in a feature's .info file: | |
// features[field][] = node-page-body | |
$features = array( | |
'my_new_feature_name' => array('field', 'variable'), |
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
const express = require('express'); | |
const app = express(); | |
const port = 3000; | |
app.get('/exit', (req, res) => { | |
res.sendStatus(200); | |
res.on('finish', () => { | |
// Exiting process when the finish event was emited and the response was at least passed successfully to the operating system | |
// (for details see: https://nodejs.org/api/http.html#http_event_finish). Without that the HTTP status code 200 won't make it. | |
console.log(`Sent a 200, stoping to list for connections on ${port} and exiting process.`); |
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
package ...; | |
import ...; | |
@ExtendWith(SpringExtension.class) | |
@WebMvcTest(controllers = SomeMVCController.class, secure = false) | |
class SomeMVCUnitTests { | |
@Autowired | |
private MockMvc mvc; |
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
// For taking live screenshots in Selenide/Selenium Tests inside IDEAs Debugger watch that expression: | |
Screenshots.takeScreenShotAsImage($("*")) |
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
package android.util; | |
import java.util.Locale; | |
import static java.lang.System.out; | |
@SuppressWarnings("UnusedReturnValue") | |
public class Log { | |
private static final int DEFAULT_RETURN_VALUE = 0; |
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
# Integration of Tobii Stream SDK into Qt Build Process | |
# | |
# Reference: | |
# http://doc.qt.io/qt-5/qmake-variable-reference.html#includepath | |
# http://doc.qt.io/qt-5/qmake-variable-reference.html#libs | |
# http://doc.qt.io/qt-5/qmake-test-function-reference.html#equals-variablename-value | |
# http://doc.qt.io/qt-5/qmake-language.html#replacing-values | |
# | |
# Environment Variable containing the path to Tobii Stream SDK |
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
# Example how to mount an ISO image file | |
sudo mount -o loop <image.iso> <directory> |
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 | |
/** | |
* @file | |
* Demo module, Basic Ajax form submit (Ajax framework). | |
*/ | |
/** | |
* Implements hook_menu(). | |
*/ |
OlderNewer