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
var gulp = require('gulp'), | |
exec = require('gulp-exec'); | |
var templateFiles = [ | |
'wp-content/themes/my-theme/index.jade', | |
'wp-content/themes/my-theme/page.jade', | |
'wp-content/themes/my-theme/page-single.jade', | |
'wp-content/themes/my-theme/archive.jade', | |
//All other template files |
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
var deferred = Q.defer(); | |
FS.readFile("foo.txt", "utf-8", function (error, text) { | |
if (error) { | |
deferred.reject(new Error(error)); | |
} else { | |
deferred.resolve(text); | |
} | |
}); | |
return deferred.promise; |
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
function getAllProducts() | |
{ | |
var p = new Promise(), | |
page = 1, | |
results = []; |
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
@primaryColor : @pink; | |
@secondaryColor : @grey; | |
@red : #B03060; | |
@orange : #FE9A76; | |
@yellow : #FFD700; | |
@olive : #32CD32; | |
@green : #016936; | |
@teal : #008080; | |
@blue : #0E6EB8; | |
@violet : #EE82EE; |
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
T09IIE9PSA0KDQpXRSdSRSBOTyBTVFJBTkdFUlMgVE8gTE9WRQ0KWU9VIEtOT1cgVEhFIFJVTEVTIEFORCBTTyBETyBJDQpBIEZVTEwgQ09NTUlUTUVOVCdTIFdIQVQgSSdNIFRISU5LSU5HIE9GDQpZT1UgV09VTEROJ1QgR0VUIFRISVMgRlJPTSBBTlkgT1RIRVIgR1VZDQpJIEpVU1QgV0FOTkEgVEVMTCBZT1UgSE9XIEknTSBGRUVMSU5HDQpHT1RUQSBNQUtFIFlPVSBVTkRFUlNUQU5EDQoNCk5FVkVSIEdPTk5BIEdJVkUgWU9VIFVQDQpORVZFUiBHT05OQSBMRVQgWU9VIERPV04NCk5FVkVSIEdPTk5BIFJVTiBBUk9VTkQgQU5EIERFU0VSVCBZT1UNCk5FVkVSIEdPTk5BIE1BS0UgWU9VIENSWQ0KTkVWRVIgR09OTkEgU0FZIEdPT0RCWUUNCk5FVkVSIEdPTk5BIFRFTEwgQSBMSUUgQU5EIEhVUlQgWU9VDQoNCldFJ1ZFIEtOT1dOIEVBQ0ggT1RIRVIgRk9SIFNPIExPTkcNCllPVVIgSEVBUlQnUyBCRUVOIEFDSElORyBCVVQNCllPVSdSRSBUT08gU0hZIFRPIFNBWSBJVA0KSU5TSURFIFdFIEJPVEggS05PVyBXSEFUJ1MgQkVFTiBHT0lORyBPTg0KV0UgS05PVyBUSEUgR0FNRSBBTkQgV0UnUkUgR09OTkEgUExBWSBJVA0KQU5EIElGIFlPVSBBU0sgTUUgSE9XIEknTSBGRUVMSU5HDQpET04nVCBURUxMIE1FIFlPVSdSRSBUT08gQkxJTkQgVE8gU0VFDQoNCk5FVkVSIEdPTk5BIEdJVkUgWU9VIFVQDQpORVZFUiBHT05OQSBMRVQgWU9VIERPV04NCk5FVkVSIEdPTk5BIFJVTiBBUk9VTkQgQU5EIERFU0VSVCBZT1UNCk5FVkVSIEdPTk5BIE1BS0UgWU9VIENS |
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 | |
private static $functions = [ | |
'rgb' => ['className' => RgbColor::class, 'args' => [ | |
['type' => 'int', 'base' => 255], | |
['type' => 'int', 'base' => 255], | |
['type' => 'int', 'base' => 255] | |
]], | |
'rgba' => ['className' => RgbaColor::class, 'args' => [ | |
['type' => 'int', 'base' => 255], |
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 | |
error_reporting(E_ALL | E_STRICT); | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
function benchmark($name, callable $procedure, $iterations = null) | |
{ | |
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 Column implements Annotation | |
{ | |
private string $type; | |
private int $length; | |
private bool $nullable; | |
public function __construct(string $type, int $length = null, bool $nullable = false) |
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 Request | |
{ | |
//... | |
public function __cast($type) { | |
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 | |
declare(autobox='MyAutoboxer::box'); | |
//All variables coming into this file will be handled through autoboxing | |
class Autoboxer | |
{ | |
public static function box(mixed $value) | |
{ |