This file contains hidden or 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 TimNeutkens\InstallProductAttributes\Setup; | |
use Magento\Catalog\Model\Product; | |
use Magento\Catalog\Model\ResourceModel\Eav\Attribute; | |
use Magento\Eav\Setup\EavSetup; | |
use Magento\Eav\Setup\EavSetupFactory; | |
use Magento\Framework\Setup\InstallDataInterface; | |
use Magento\Framework\Setup\ModuleContextInterface; | |
use Magento\Framework\Setup\ModuleDataSetupInterface; |
This file contains hidden or 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 TimNeutkens\Example\Block; | |
use Magento\Framework\App\State; | |
use Magento\Framework\View\Element\Template; | |
use Magento\Framework\View\Element\Template\Context; | |
class ExampleBlock extends Template { | |
protected $developerMode; | |
public function __construct(Context $context, array $data = []) { | |
/** @var State $state */ |
This file contains hidden or 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
<?xml version="1.0"?> | |
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
<body> | |
<referenceBlock name="product.info.review" remove="true" /> | |
<referenceBlock name="reviews.tab" remove="true" /> | |
</body> | |
</page> |
This file contains hidden or 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
alias ip='dig +short myip.opendns.com @resolver1.opendns.com' |
This file contains hidden or 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
[client] | |
user=mysqluser | |
password=mysqlpass | |
host=localhost |
This file contains hidden or 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() { | |
var exec = false; | |
if(typeof requirejs !== 'undefined') { | |
exec = requirejs; | |
} else if (typeof require !== 'undefined') { | |
exec = require; | |
} else { | |
console.log('require.js not found'); | |
return false; | |
} |
This file contains hidden or 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
filetype plugin indent on | |
syntax on |
This file contains hidden or 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
.swiper-container { | |
position: relative; | |
overflow: hidden; | |
width: 100%; | |
} | |
.swiper-wrapper { | |
position: relative; | |
width: 10000%; | |
} |
This file contains hidden or 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 scrollTo(element) { | |
jQuery('html, body').animate({ | |
scrollTop: jQuery(element).offset().top | |
}, 500); | |
} | |
jQuery('.accordion').on('accordionactivate', function( event, ui ) { | |
scrollTo(jQuery(event.target).find('.ui-accordion-header-active')) | |
}); |
This file contains hidden or 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').attr('class') | |
.split(' ') | |
.filter( function (word) { | |
return word.match(/wf-(.*)-active/g); } | |
) | |
.forEach( function (font) { | |
console.log(font.replace(/wf-|-active/g, '')) | |
}) |