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
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
<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
<?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
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
# 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
git init | |
git add . | |
git commit -m "initial commit of full repository" | |
git remote add origin <bitbucket_URL> | |
git push -u origin --all | |
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
# List all containers | |
$ docker ps -a | |
# List started containers | |
$ docker ps | |
# List stopped containers | |
docker ps --filter "status=exited" | |
# Stop container |
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
# run composer to avoid memory limit error | |
php -d memory_limit=-1 /usr/local/bin/composer … | |
# ignore requirements | |
composer ... --ignore-platform-reqs |
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
/* smartphones, touchscreens */ | |
@media (hover: none) and (pointer: coarse) { | |
/* ... */ | |
} | |
/* stylus-based screens */ | |
@media (hover: none) and (pointer: fine) { | |
/* ... */ | |
} | |
/* Nintendo Wii controller, Microsoft Kinect */ | |
@media (hover: hover) and (pointer: coarse) { |