Skip to content

Instantly share code, notes, and snippets.

+----------------------------------------------+
| Series | Episode | Description |
+--------+---------+---------------------------+
| 3 | 5 | Indestructible Hilux |
| 4 | 1 | DB9 vs Euro Train |
| 5 | 5 | Jaguar at the Nurburgring |
| 5 | 8 | Race to Verbier |
| 7 | 1 | Vantage, M6, 911 |
| 7 | 3 | Supercars Across France |
| 7 | 5 | Bugatti vs Cesna |
<?php
if(empty($_SERVER['HTTP_X_REQUESTED_WITH'])) {
$config['show_profiler'] = $config['template_debugging'] = (ENV === 'local') ? 'y' : 'n';
}
// everyone's new favorite closure pattern:
(function(window,document,undefined){ ... })(this,this.document);
// when minified:
(function(w,d,u){ ... })(this,this.document);
// which means all uses of window/document/undefined inside the closure
// will be single-lettered, so big gains in minification.
// it also will speed up scope chain traversal a tiny tiny little bit.