Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| /* | |
| * Decide on your cache-busting strategy. In this example, we use the current timestamp, which will | |
| * force a change every time the app is visited, but not every time the partial is loaded within a | |
| * visit. Even better would be to use a hash of the file's contents to ensure that the file is always | |
| * reloaded when the file changes and never reloaded when it isn't. | |
| */ | |
| var cacheBustSuffix = Date.now(); | |
| // Optionally, expose the cache busting value as a constant so other parts of your app can use it. | |
| ngModule.constant("cacheBustSuffix", cacheBustSuffix); |
| <?php | |
| namespace Vandpibe\PHPSpec\Extension; | |
| use PHPSpec2\ServiceContainer; | |
| use PHP_CodeCoverage; | |
| use PHP_CodeCoverage_Report_HTML; | |
| class CodeCoverage implements \PHPSpec2\Extension\ExtensionInterface | |
| { |
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
| This playbook has been removed as it is now very outdated. |
| #!/bin/sh | |
| # ./bin/behat-ci.sh | |
| project_dir=$(dirname $(readlink -f $0))"/.." | |
| logs_path=${1:-"./build/logs/behat"} | |
| reports_path=${2:-"./build/behat"} | |
| cd $project_dir |
| # replace PAPERTRAIL_HOSTNAME and PAPERTRAIL_PORT | |
| # see http://help.papertrailapp.com/ for additional PHP syslog options | |
| function send_remote_syslog($message, $component = "web", $program = "next_big_thing") { | |
| $sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); | |
| foreach(explode("\n", $message) as $line) { | |
| $syslog_message = "<22>" . date('M d H:i:s ') . $program . ' ' . $component . ': ' . $line; | |
| socket_sendto($sock, $syslog_message, strlen($syslog_message), 0, PAPERTRAIL_HOSTNAME, PAPERTRAIL_PORT); | |
| } | |
| socket_close($sock); |
| awk | |
| bunzip2 | |
| bzcat | |
| bzip2 | |
| cat | |
| chown | |
| cp | |
| curl | |
| cut | |
| date |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| <?php | |
| namespace Drupal\Core\Controller; | |
| use Symfony\Component\HttpKernel\Controller\ControllerResolver; | |
| use Symfony\Component\HttpKernel\Log\LoggerInterface; | |
| use Symfony\Component\HttpFoundation\Request; | |
| /** | |
| * Extended controller resolver trying to use the node to get the controller |
| // MySQL test: (create on database 'abook' with username 'abook' and password 'abook') | |
| // | |
| // CREATE TABLE IF NOT EXISTS `users` ( | |
| // `id` int(5) unsigned NOT NULL AUTO_INCREMENT, | |
| // `username` varchar(50) NOT NULL, | |
| // `password` varchar(50) NOT NULL, | |
| // PRIMARY KEY (`id`), | |
| // KEY `username` (`username`) | |
| // ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| // INSERT INTO `users` (`username`, `password`) VALUES |