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
{% assign isTagAvailable = false %} | |
{% for item in cart.items %} | |
{% if item.product.tags contains 'poster' or item.product.tags contains 'frames' %} | |
{% assign isTagAvailable = true %} | |
{% endif %} | |
{% endfor %} | |
{% if isTagAvailable %} | |
Add your code here | |
{% endif %} |
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
{% assign isTagDeposit = false %} | |
{% for tag in product.tags %} | |
{% if tag contains 'DEPOSIT' %} | |
{% assign isTagDeposit = true %} | |
{% break %} | |
{% endif %} | |
{% endfor %} | |
{% if isTagDeposit == false %} | |
{% include 'cross-sell' %} | |
{% endif %} |
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
# install-rails.sh | |
apt-get update | |
apt-get install -y git curl vim tmux redis-server postgresql libpq-dev zsh gnupg2 | |
# install rvm | |
gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
\curl https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable | |
source /home/vagrant/.rvm/scripts/rvm | |
rvm install 2.6.0 |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
REQUIRED_PLUGINS = %w(vagrant-vbguest) | |
plugins_to_install = REQUIRED_PLUGINS.select { |plugin| not Vagrant.has_plugin? plugin } | |
if not plugins_to_install.empty? | |
puts "Installing required plugins: #{plugins_to_install.join(' ')}" | |
if system "vagrant plugin install #{plugins_to_install.join(' ')}" |
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
<style type="text/css"> | |
@media only screen and (max-width: 768px) { | |
/* For mobile phones: */ | |
.xs-mobile-hide{ | |
display:none !important} | |
} | |
@media only screen and (min-width: 769px) { | |
/* For desktop phones: */ | |
.xs-desktop-hide{ | |
display:none !important} |
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
#cross-sell .cross-sell img{ | |
height: 200px; | |
width: auto;} | |
@media only screen and (max-width: 500px){ | |
#cross-sell .cross-sell img { | |
height: 100px; | |
width: auto; }} | |
@media only screen and (max-width: 979px) and (min-width: 501px){ | |
#cross-sell .cross-sell img { |
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
#!/bin/bash | |
# To create in [.babun/]cygwin/usr/local/bin/subl with chmod +x | |
ARGS="" | |
while test $# -gt 0 | |
do | |
ARGS="$ARGS ${1#/cygdrive/[a-zA-Z]}"; # Remove /cygdrive and disk letter from the path | |
shift | |
done |
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
#!/bin/bash | |
# sleepwatcher script to dismount ext. drives on wake https://www.kodiakskorner.com/log/258 | |
# checks if data & bak volumes are mounted, and if so dismounts | |
if [[ $(mount | awk '$3 == "/Volumes/bak" {print $3}') != "" ]]; then | |
diskutil umount bak | |
fi |
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
/** | |
* Object Extending Functionality | |
*/ | |
var extend = function(out) { | |
out = out || {}; | |
for (var i = 1; i < arguments.length; i++) { | |
if (!arguments[i]) | |
continue; | |
for (var key in arguments[i]) { |
NewerOlder