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
| {% if content_for_header contains 'adminBarInjector' %} | |
| {% endif %} |
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
| data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3C/svg%3E |
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
| const cache = {}; const myFunc = (input) => { if (cache[input]) { return cache[input]; }; console.log(`calculating...`); const value = input * 2; cache[input] = value; return value; }; myFunc(1); myFunc(2); myFunc(1); |
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
| (?<=href=("|'))[^"']+(?=("|')) |
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
| <script> Shopify.Checkout.OrderStatus.addContentBox('<h2>Pick-up in store</h2>', '<p>We are open everyday from 9am to 5pm.</p>') </script> |
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
| const updateCount = (setProgress, progressPercent) => { | |
| const target = parseInt(setProgress.getAttribute("data-done")); | |
| const count = parseInt(progressPercent.innerText); | |
| const increment = 1; | |
| if (count < target) { | |
| progressPercent.innerText = count + increment; | |
| setTimeout(updateCount, 50); | |
| } else if (count > target) { | |
| progressPercent.innerText = count - increment; |
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
| /* | |
| * Shopify Common JS | |
| * | |
| */ | |
| if ((typeof window.Shopify) == 'undefined') { | |
| window.Shopify = {}; | |
| } | |
| Shopify.bind = function(fn, scope) { | |
| return 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
| let i = 0; | |
| console.time("While loop"); | |
| while (i < 100000) { | |
| i++; | |
| } | |
| console.timeEnd("While loop"); | |
| console.time("For loop"); | |
| for (i = 0; i < 100000; i++) { | |
| // For Loop | |
| } |
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
| sudo chown -R boss /home/boss/DEV/vue-carte |
OlderNewer