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
@mixin crop-and-center-background-image($width, $height) { | |
display: block; | |
width: $width; | |
height: $height; | |
background-position: center center; | |
background-size: cover; | |
} |
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 | |
/** | |
* Interface ReferencedDocumentInterface | |
* | |
*/ | |
interface ReferencedDocumentInterface | |
{ |
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 | |
return array( | |
'doctrine-hydrator' => array( | |
'MyApi\\V1\\Rest\\Assets\\AssetsHydrator' => array( | |
'entity_class' => 'Application\\Entity\\Asset', | |
'object_manager' => 'doctrine.documentmanager.odm_default', | |
'by_value' => true, | |
'strategies' => [ | |
'categories' => 'DoctrineHydrationModule\Strategy\ODM\MongoDB\EmbeddedReferenceCollection', | |
'userGroups' => 'DoctrineHydrationModule\Strategy\ODM\MongoDB\EmbeddedReferenceCollection', |
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 public/index.php config list | grep '^routes\.[a-zA-Z0-9_-.].*\.route' |
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/bash | |
# | |
# ./filecount-stats [dir1] [dir2] ... | |
# | |
TOTAL_FILES=0 | |
TOTAL_LINES=0 | |
for DIR in "$@" |
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
# Enable CORS | |
# with AJAX withCredentials=false (cookies NOT sent) | |
<IfModule mod_headers.c> | |
Header always set Access-Control-Allow-Origin "*" | |
Header always set Access-Control-Allow-Methods "POST, GET, PUT, OPTIONS, PATCH, DELETE" | |
Header always set Access-Control-Allow-Headers "X-Accept-Charset,X-Accept,Content-Type,Accept,Accept-Charset,x-requested-with,Authorization" | |
RewriteCond %{REQUEST_METHOD} OPTIONS | |
RewriteRule ^(.*)$ $1 [R=200,L,E=HTTP_ORIGIN:%{HTTP:ORIGIN}]] | |
</IfModule> |
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 | |
namespace spec\Application\Controller; | |
use PhpSpec\ObjectBehavior; | |
use PhpSpec\Wrapper\WrapperInterface; | |
use Prophecy\Argument; | |
use Prophecy\Prophecy\ProphecyInterface; | |
use Prophecy\Prophet; | |
use Zend\Mvc\Controller\PluginManager; |
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 | |
return [ | |
'view_manager' => [ | |
'display_not_found_reason' => true, | |
'display_exceptions' => true, | |
], | |
]; |
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> | |
<script> | |
var count=0; | |
function sendMessage() { | |
window.parent.postMessage( | |
JSON.stringify({"greeting": "hello world"}), // A stringified message to send. | |
"*" // The intended origin, in this example we use the any origin wildcard. | |
); | |
} |
OlderNewer