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
# ignore everything in the root except the "wp-content" directory. | |
!wp-content/ | |
# ignore everything in the "wp-content" directory, except: | |
# "mu-plugins", "plugins", "themes" directory | |
wp-content/* | |
!wp-content/mu-plugins/ | |
!wp-content/plugins/ | |
!wp-content/themes/ |
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
a { | |
transition: color 0.3s ease-in-out; | |
} |
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 | |
/** | |
* InstallData | |
* | |
* @copyright Copyright © 2019 The Etailers. All rights reserved. | |
* @author [email protected] | |
*/ | |
namespace FERR\AlternateHreflang\Setup; |
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
<block class="Magento\Framework\View\Element\Text" name="excl.tax.label"> | |
<action method="setText"> | |
<argument translate="true" name="text" xsi:type="string">Excl. Tax</argument> | |
</action> | |
</block> |
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
find -printf "%TY-%Tm-%Td %TT %p\n" | sort -n |
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
var sandwiches1 = ['turkey', 'tuna', 'blt']; | |
var sandwiches2 = ['chicken', 'pb&j', 'tuna']; | |
var allSandwiches = sandwiches1.concat(sandwiches2); | |
// sandwiches1: ['turkey', 'tuna', 'blt'] | |
// sandwiches2: ['chicken', 'pb&j', 'tuna'] | |
// allSandwiches: ['turkey', 'tuna', 'blt', 'chicken', 'pb&j', 'tuna'] |
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
var sandwiches = ['turkey', 'ham', 'turkey', 'tuna', 'pb&j', 'ham', 'turkey', 'tuna']; | |
var deduped = sandwiches.filter(function (sandwich, index) { | |
return sandwiches.indexOf(sandwich) === index; | |
}); | |
// Logs ["turkey", "ham", "tuna", "pb&j"] | |
console.log(deduped); |
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
/* Constructor */ | |
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig | |
$this->scopeConfig = $scopeConfig | |
/* Use */ | |
$this->scopeConfig->getValue('dev/debug/template_hints', \Magento\Store\Model\ScopeInterface::SCOPE_STORE); |
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
git commit --amend |
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
#Delete remote tag | |
git push --delete origin <tag> | |
#Move tag | |
git tag --force v1.0 <ID-of-commit-127> | |
git push --force --tags |