This file contains 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
|
This file contains 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
{% comment %} <div class="w-11/12 h-2 mx-auto bg-gray-300 rounded-b opacity-75 rounded-xs"></div> | |
<div class="w-10/12 h-2 mx-auto bg-gray-300 rounded-b opacity-50 rounded-xs"></div> | |
<div class="w-9/12 h-2 mx-auto bg-gray-300 rounded-b opacity-25 rounded-xs"></div> {% endcomment %} |
This file contains 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 voleur = { | |
action : () =>console.log ('Coup de dague fatal') , | |
crie : ('pour la horde!!!!') , | |
coupfatal :()=> console.log ('coup dans le dos') | |
} | |
voleur.action() ; | |
voleur.coupfatal() ; | |
console.log(voleur.crie) ; |
This file contains 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
// vim: syntax=javascript | |
<div x-data="{foo :'not selected'}"> | |
<select @change="foo = $event.target.value"> | |
<option x-bind:value="1">option 1</option> | |
<option x-bind:value="2">option 2</option> | |
<option x-bind:value="3">option 3</option> | |
</select> | |
<span x-text="'option '+ foo"></span> | |
</div> |
This file contains 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 |
This file contains 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 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 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 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> |
NewerOlder