Skip to content

Instantly share code, notes, and snippets.

View reMRKableDev's full-sized avatar
🦁
Pamoja 💯

Malcolm R. Kente reMRKableDev

🦁
Pamoja 💯
View GitHub Profile
@CodeBrotha
CodeBrotha / line_item_property_discount.rb
Created November 11, 2021 00:34
Shopify Scripts - Line Item Properties Discount
Input.cart.line_items.each do |item|
# ================================================================
# LINE ITEM PROPERTY DISCOUNT
# ================================================================
# Set the line item property in Shopify theme When adding item to cart
#
# line item property is a key/value pair. Example: {"_someCoolPromo": "1"}
#
# In this example:
# "_someCoolPromo" is the key we look for here and must ALWAYS start with an underscore.
@lukasrudnik
lukasrudnik / Flexbox Defense answers
Created June 21, 2017 12:49
Solutions Flexbox Defense
1.
justify-content: center;
2.
justify-content: flex-end;
justify-content: center;
justify-content: flex-end;
3.
justify-content: center;
@badcrocodile
badcrocodile / betterTimeout.js
Created August 19, 2015 01:34
Alternative to setTimeout()
function interval(func, wait, times){
var interv = function(w, t){
return function(){
if(typeof t === "undefined" || t-- > 0){
setTimeout(interv, w);
try{
func.call(null);
}
catch(e){
t = 0;