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
# Output longest line to bigfile.txt | |
cat ./local.sql | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' > bigfile.txt | |
# Count characters in longest line | |
cat ./local.sql | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | wc -m |
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 | |
// We assume that a custom module is implementing a file formatter | |
// called 'mymodule_custom_file_formatter'. | |
$filetype = 'video'; // File type to alter file display for. | |
$display = 'preview'; // File display to alter - 'default', 'teaser' or 'preview'. | |
$video_display = file_display_new($filetype, $display, 'mymodule_custom_file_formatter'); | |
$video_display->export_type = 1; |
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
<html> | |
<head> | |
<title>PHP for CMS Developers - Exercise 1</title> | |
</head> | |
<body> | |
<p>Enter a date, using a format understood by <a href="http://php.net/manual/en/class.datetime.php">http://php.net/manual/en/class.datetime.php</a></p> |
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
#!/bin/sh | |
# SCREAM ERR0R. | |
php -d xdebug.scream=1 vendor/bin/codecept build |
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 CheeseCest | |
{ | |
/** | |
* A test. | |
* | |
* @param AuthenticatedStepsInterface $I | |
* The Guy object being used to test. | |
*/ |
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
#!/bin/sh | |
cat **/*.(php|module|inc|css|js) | wc -l |
NewerOlder