Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Creating An Audience Targeting Platform...

Jonathon Byrdziak Jonathonbyrd

💭
Creating An Audience Targeting Platform...
View GitHub Profile
@Jonathonbyrd
Jonathonbyrd / event-success-page-clickfunnels.js
Created May 29, 2020
Conversion Event Pixel for Clickfunnels
View event-success-page-clickfunnels.js
<script>
var eventTotal = 0;
jQuery('.elOrderProductOptinPrice').each(function(k,v){
v = jQuery(v);
var _str = v.text().replace('$','');
var _num = parseFloat(_str,2);
eventTotal += _num;
});
fbq('track', 'Purchase', {
@Jonathonbyrd
Jonathonbyrd / gist:827607410d126bd277c2150e05e340de
Created Jan 8, 2020
coeur dalene resort airbnb New modern family home
View gist:827607410d126bd277c2150e05e340de
This home is perfect for your family with kids and pets. One King bed, One Queen bed and two twins make up this fully furnished 3 bedroom 2 full bath home. *AMENITIES* - Deck - Dishwasher Machine - Fridge / Freezer - Electric Range / Oven - Coffee Pot - Kitchen Aid Mixer - Wood Fireplace - Smart TV - Iron / Ironing Table - Two Person Shower off the Master - Unlimited Tankless Hot Water - Heating - Blow Dryer - Alarm Clock - Vacuum /mop /broom /cleaning supplies *GREAT FOR KIDS* - Changing table - Bouncer - Two twin beds - Game console - Board Games - Close to multiple parks - Accessed from a quiet street *PETS ARE ALLOWED* - We have a fully fenced back yard that was newly sodded. - A large dog door for Fido to come and go as he pleases. - Large Kennel stored under the king bed. - Dog bed for two large dogs. - Commercial rigid core flooring to prevent scratches. - Food and water bowls and including a few pet supplies are provided. Owner pays electric, gas, water, sewer, garbage, internet. Pets allowed. NO smok
@Jonathonbyrd
Jonathonbyrd / Gemfile
Created Jul 12, 2019 — forked from rccursach/Gemfile
redis_pubsub_demo.rb
View Gemfile
source "https://rubygems.org"
gem 'eventmachine'
gem 'sinatra'
gem 'yajl-ruby', require: 'yajl'
gem 'thin'
gem 'em-websocket'
View validate_m2_package_v2.php
#!/usr/bin/php
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See https://github.com/magento/magento2/blob/develop/COPYING.txt for license details.
*/
/**
* validate_m2_package.php - a script that checks a given M2 zip package to ensure
* it is structured correctly and has all the required files.
@Jonathonbyrd
Jonathonbyrd / phpunit-recurring-order-sample-code.php
Last active Oct 18, 2017
Sample code showing my work with phpunit
View phpunit-recurring-order-sample-code.php
<?php
/**
* Mage Plugins, LLC
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mage Plugins Commercial License (MPCL 1.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://mageplugins.net/commercial-license/
@Jonathonbyrd
Jonathonbyrd / README.md
Last active May 29, 2020
Magento 2 CLI Cheat Sheet
View README.md

List all available commands

php bin/magento --list

Installing/Upgrading Magento

php bin/magento setup:upgrade
php bin/magento deploy:mode:set production

Migrating Magento

@Jonathonbyrd
Jonathonbyrd / product_data_query.sql
Last active Feb 17, 2017
Common Magento SQL Queries
View product_data_query.sql
USE dgustore;
SELECT
`e`.`entity_id` as `id`,
`e`.`sku`,
IF(_table_status.value_id > 0, _table_status.value, _table_status_default.value) AS `status`,
IF(at_name.value_id > 0, at_name.value, at_name_default.value) AS `name`,
c2.value as category,
IF(at_description.value_id > 0, at_description.value, at_description_default.value) AS `description`
FROM
@Jonathonbyrd
Jonathonbyrd / recurring_orders_api.md
Created Feb 2, 2017
Submitting Recurring Order Data to RF
View recurring_orders_api.md

Introduction to API

Overview

What is REST API? To make it simple, REST API defines a set of functions to which the developers can perform requests and receive responses. The interaction is performed via the HTTP protocol. An advantage of such an approach is the wide usage of HTTP. That is why REST API can be used practically for any programming language.

Common characteristics of Magento REST API resources are as follows: (magentohost is your domain)

  • You access the resource by sending an HTTP request to the Magento API server. The server replies with a response that contains either the data you requested, or the status indicator, or even both.
  • All resources are located at https://magentohost/api/rest/.
@Jonathonbyrd
Jonathonbyrd / CONTRIBUTING.md
Created May 10, 2016
Contributing to Merchant Protocol Repositories
View CONTRIBUTING.md

Contributing to Merchant Protocol Repsitories

Contributions to the Magento 2 codebase are done using the branch & pull model developed by github. This contribution model has contributors maintaining their own branch of the codebase (which can easily be synced with the main copy). The branch is then used to submit a request to the repository to “pull” a set of changes (hence the phrase “pull request”).

Bug fixes may be contributed directly to the Master Branch. Contributing branches can take the form of new components/features, changes to existing features, tests, documentation (such as developer guides, user guides, examples, or specifications), optimizations or just good suggestions. Branch names should start with the issue # describing the contribution, followed by a few keywords.

The Merchant Protocol Enterprise Architects Team will review all issues and requests submitted in the first in, first out order. During the review we migh

View CONTRIBUTOR_LICENSE_AGREEMENT.md

Merchant Protocol Contributor Agreement

Summary Clause

By making a contribution, you agree to the terms of the Merchant Protocol Contributor License Agreement, which includes your grant to Merchant Protocol of a royalty-free, perpetual and irrevocable license to use and relicense your contribution, and any copyrights and patent rights in your contribution. You may only contribute software and materials originally created by you or your company and you must have the right to make the contribute on behalf of yourself and/or your company.

Merchant Protocol, INC.

You can’t perform that action at this time.