These set of scripts are for Magento 2. For Magento 1, see this Gist.
All custom modules should have a Namespace and Module Name.
These are used below as {Namespace}
and {Module}
.
Caution: The Magento autoloader is known to have problems with CamelCase namespaces and/or modules between Windows and *nix systems. If your module requires more than one word for either of these, it is best to just concatenate them to avoid any issues (Example:
{Namespace}_{Examplemodule}
).
These set of scripts are for Magento 1. For Magento 2, see this Gist.
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 App\Providers; | |
use Illuminate\Cache\RateLimiting\Limit; | |
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\RateLimiter; | |
use Illuminate\Support\Facades\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
<?php | |
function d($arg) { | |
if (is_object($arg)) { | |
echo PHP_EOL . 'CLASS: ' . get_class($arg) . PHP_EOL; | |
if ($arg instanceof \Magento\Framework\DB\Select) { | |
var_dump($arg->__toString()); | |
} | |
if (method_exists($arg, 'getSelect')) { | |
var_dump($arg->getSelect()->__toString()); |
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 | |
/** | |
* PHP Coding Standards fixer configuration | |
*/ | |
$finder = PhpCsFixer\Finder::create() | |
->ignoreDotFiles(true) | |
->ignoreVCSIgnored(true) | |
->exclude('node_modules') |
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 | |
LOCKFILE=deploy.lock | |
if [ -e ${LOCKFILE} ] && kill -0 `cat ${LOCKFILE}`; then | |
echo "-- ERROR" | |
echo "-- Deployment is already running" | |
exit | |
fi |
- https://getloaf.io/
Animated SVG icon creator
- https://www.wirewax.com
Fully interactive videos. Eg: Witch Queen Bungie video
Includes:
- Configuration
- BrowserSync
- Environments (e.g.,:
--environment=production
) - Image optimization (gif, jpg, png, and svg)
- Sass compilation with external libraries
- Bower installed Sass libraries example(s)
- CSS processing with Pleeease
NewerOlder