cat ~/.ssh/id_rsa.pub | xclip -sel clip
Run composer install:
docker-compose run --rm composer install
Magento bin/magento:
docker-compose exec php bin/magento
Show magento configuration
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
| <? | |
| // Discount | |
| $discount = abs($order->getDiscountAmount()); | |
| if ($discount > 0) { | |
| $applyTaxAfterDiscount = (int)Mage::getStoreConfig('tax/calculation/apply_after_discount'); | |
| $discountIncludesTax = (int)Mage::getStoreConfig('tax/calculation/discount_tax'); | |
| if (!$discountIncludesTax && !$applyTaxAfterDiscount) { | |
| } elseif ( | |
| (!$discountIncludesTax && $applyTaxAfterDiscount) |
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 dragging = false; | |
| $('.facetapi-facetapi-links > .leaf > a') | |
| .on('touchmove', function(){ | |
| dragging = true; | |
| }) | |
| .on('touchend', function(){ | |
| if (dragging) | |
| return; | |
| }) | |
| .on('touchstart', function(){ |
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 href="#" data-lat="23, 18.33" data-toggle="modal" data-target="#myMapModal"> | |
| Launch Map Modal | |
| </a> | |
| <div class="modal fade" id="myMapModal"> | |
| <div class="modal-dialog"> | |
| <div class="modal-content"> | |
| <div class="modal-header"> | |
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| <h4 class="modal-title">Modal title</h4> |
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
| objArray.sort(function(a, b) { | |
| var textA = a.DepartmentName.toUpperCase(); | |
| var textB = b.DepartmentName.toUpperCase(); | |
| return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; | |
| }); |
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
| #!/bin/bash | |
| #setup variables | |
| x="/share/cam" #base dir to search | |
| date=$(date +"%Y%m%d%H%M") #date used throughout script | |
| fileprefix="yt_" | |
| ytemail="youremail" #your youtube email account | |
| ytpassword="password" #your youtube password | |
| emailfrom="youremail(Your Name)" #your email address and from name | |
| emailuser="youremail" #your gmail address | |
| emailpassword="password" #your gmail password |
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 | |
| $resultstr = array(); | |
| foreach ($results as $result) { | |
| $resultstr[] = $result->name; | |
| } | |
| echo implode(",",$resultstr); |
Extend your bootstrap.css with this css:
@media (min-width:1200px){
.auto-clear .col-lg-1:nth-child(12n+1){clear:left;}
.auto-clear .col-lg-2:nth-child(6n+1){clear:left;}
.auto-clear .col-lg-3:nth-child(4n+1){clear:left;}
.auto-clear .col-lg-4:nth-child(3n+1){clear:left;}
.auto-clear .col-lg-6:nth-child(odd){clear:left;}
}
@media (min-width:992px) and (max-width:1199px){