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 %} | |
- I have a product with a variant metafield containing associated cross-sell product list | |
- Objective is to show cross-sell products associated with the variant | |
- Second objective was to use object construction to remove complexity in markup | |
- Inside the markup, we need the product reference for data population as well as the variant IDs which needs to show the cross sell card (used by Javascript) | |
{% endcomment %} | |
{% liquid | |
# First, we make a duplicate-free list of cross-sell products | |
assign cross_sell_product_list = '' |
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
## Pre-requisite: You have to know your last commit message from your deleted branch. | |
git reflog | |
# Search for message in the list | |
# a901eda HEAD@{18}: commit: <last commit message> | |
# Now you have two options, either checkout revision or HEAD | |
git checkout a901eda | |
# Or | |
git checkout HEAD@{18} |
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
<p style="float: right; text-align: right; margin: 0;"> | |
{{ "now" | date: "%m/%d/%y" }}<br /> | |
Invoice for {{ order_name }} | |
</p> | |
<div style="float: left; margin: 0 0 1.5em 0;" > | |
<strong style="font-size: 2em;">{{ shop_name }}</strong><br /><br /> | |
{{ shop.address }}<br/> | |
{{ shop.city }} {{ shop.province_code }} {{ shop.zip | upcase }}<br/> | |
{{ shop.country }} |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
@echo off | |
SET BOOTSTRAP=.\docs\assets\css\bootstrap.css | |
SET BOOTSTRAP_LESS=.\less\bootstrap.less | |
SET BOOTSTRAP_RESPONSIVE=.\docs\assets\css\bootstrap-responsive.css | |
SET BOOTSTRAP_RESPONSIVE_LESS=.\less\responsive.less | |
SET "CHECK= " | |
SET HR=################################################## | |
::Try to use the local build tools, if installed instead of global ones |
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
<?php | |
/** | |
* @package Molajo | |
* @copyright 2012 Amy Stephen. All rights reserved. | |
* @license GNU GPL v 2, or later and MIT, see License folder | |
* | |
* Place in the root of your website - execute it - and copy the results into your .gitignore | |
*/ | |
$current_path = __DIR__; |
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 type="text/javascript" charset="utf-8"> | |
//<![CDATA[ | |
// Including jQuery conditionnally. | |
if (typeof jQuery === 'undefined') { | |
document.write({{ "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" | script_tag | json }}); | |
document.write('<script type="text/javascript">jQuery.noConflict();<\/script>'); | |
} | |
//]]> | |
</script> |
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
<!-- to be saved at /usr/share/nginx/html/404.html --> | |
<html lang="en"><head><meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, minimum-scale=1, width=device-width"> | |
<title>Error 404 (Not Found)!!1</title> | |
<style> | |
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}} | |
</style> | |
<link type="text/css" rel="stylesheet" href="chrome-extension://cpngackimfmofbokmjmljamhdncknpmg/style.css"><script type="text/javascript" charset="utf-8" src="chrome-extension://cpngackimfmofbokmjmljamhdncknpmg/page_context.js"></script></head><body screen_capture_injected="true"> | |
<!-- |