Skip to content

Instantly share code, notes, and snippets.

View CodeBrotha's full-sized avatar

Tineyi CodeBrotha

  • United States
View GitHub Profile
@CodeBrotha
CodeBrotha / config-example.yml
Last active March 18, 2021 01:00
Shopify Themekit Config Template. (config-example.yml)
## This is your TEST dev theme [in Test env]. You should make all your changes here and view on test store while working.
development:
<<: *shared
store: STORE_NAME_HERE.myshopify.com ## Test Store name.
password: ADD_PASSWORD_HERE ## Private App password from Shopify.
theme_id: 'ADD_THEME_ID_HERE' ## ID number of your Dev theme on live store.
## TEST Staging theme [in Test env]
staging-test:
<<: *shared
@CodeBrotha
CodeBrotha / Add Color Swatches using hex values.md
Created August 28, 2018 01:43 — forked from carolineschnapp/Add Color Swatches using hex values.md
Add Color swatches to #Brooklyn theme. Use hexadecimal values or images.

What we want

We want to go from this:

Alt text

... to that:

Alt text

@CodeBrotha
CodeBrotha / .hyper.js (Windows)
Last active September 1, 2020 16:23
Hyper Config (Windows)
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@CodeBrotha
CodeBrotha / .hyper.js (MacOS)
Last active September 17, 2020 18:54
Hyper Config MacOS
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@CodeBrotha
CodeBrotha / checkout.liquid
Last active November 19, 2020 19:06
Hide Specific Shipping Rates From Shopify Checkout (Shopify Plus Stores Only)
{% comment %} Hide Secret Shipping Rates From Checkout {% endcomment %}
<script type="text/javascript">
if (Shopify.Checkout.step == 'shipping_method') {
$(window).load(function () {
$(".radio__label__primary").each(function () {
var shipMeth = $(this).data("shipping-method-label-title");
if (shipMeth) {
if (shipMeth.includes("Name Of Secret Shipping Rate Here") || shipMeth.includes("Another Secret Ship Option Rate Here")) {
$(this).closest(".content-box__row").remove();
$(".section__content").each(function () {
@CodeBrotha
CodeBrotha / WSL-Ubuntu-oh-my-zsh-setup.md
Last active December 1, 2023 04:28
WSL Ubuntu: oh-my-zsh Setup:

WSL Ubuntu: oh-my-zsh Setup:

Installing Zsh:

sudo apt install zsh

After installing it, type zsh

zsh will ask you to choose some configuration.

@CodeBrotha
CodeBrotha / Create Stacks & Bundles on Shopify using Collection
Created September 20, 2020 01:44 — forked from minionmade/Create Stacks & Bundles on Shopify using Collection
Now you can create bundles and product stacks on Shopify using a single collection page to showcase multiple products, allowing multiple products to be added to the cart all at once! Example: https://getapi.com/collections/hustle-hard-stack#
<form action="/cart/add" method="post" enctype="multipart/form-data" id="AddToCartForm">
{% if collection.products_count > 0 %}
{% for product in collection.products %}
{% if product.available %}
<div class="row">
<div class="col-xs-12 col-sm-4">
<img src="{{ product.image | default: product.featured_image | img_url: 'large' }}" alt="{{ variant.title | escape }}" />
</div>
<div class="col-xs-12 col-sm-8" style="padding: 15% 40px 0">
<div class="col-xs-12 col-sm-12">
# Use an array to keep track of the discount campaigns desired.
CAMPAIGNS = [
# $5 off all items with the "sale" tag
ItemCampaign.new(
AndSelector.new(
TagSelector.new("sale"),
ExcludeGiftCardSelector.new,
),
MoneyDiscount.new(5_00, "5$ off all items on sale",),
),
@CodeBrotha
CodeBrotha / Heroku Staging & Production Remotes Setup.md
Last active June 15, 2022 04:01
Heroku Staging & Production Remotes Setup

List current remotes:

git remote -v

Add Heroku product & staging remotes:

Using Heroku-CLI:

heroku git:remote -a staging-app-name -r staging
@CodeBrotha
CodeBrotha / Using Git With Multiple Emails.md
Last active October 17, 2024 06:48
Using Git With Multiple Emails

Git 2.13 introduced conditional configuration includes. For now, the only supported condition is matching the filesystem path of the repository, but that’s exactly what we need in this case.

You can configure your conditional includes by adding them to the bottom of your home directory’s ~/.gitconfig file:

[includeIf "gitdir:~/work/"]
  path = ~/.gitconfig-work
[includeIf "gitdir:~/specific-project/"]
  path = ~/.gitconfig-specific-project