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/File Comparison | |
diffchecker.com | |
// CSS - Baseline Generator | |
http://joshnh.com/tools/em-baseline-generator.html |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('block_identifier')->toHtml();?>
{{block class="Magento\\Cms\\Block\\Block" block_id="block_identifier"}}
<referenceContainer name="content">
<block class="Magento\Cms\Block\Block" name="block_identifier">
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 this from /admin/orders/. Paste it into the javascript console and press enter. | |
function delete_all() | |
{ | |
l = $("[name*=order_ids_]"); | |
console.log("Found "+l.length+" checkboxes"); | |
for(i=0; i<l.length; i++) | |
{ | |
name = $(l[i]).attr("name"); | |
if(name.indexOf("order_ids_") > -1) | |
{ |