Skip to content

Instantly share code, notes, and snippets.

View jonathonbyrdziak's full-sized avatar
🔥
Scaling Businesses with Marketing Technology

Jonathon Byrdziak jonathonbyrdziak

🔥
Scaling Businesses with Marketing Technology
View GitHub Profile
@jonathonbyrdziak
jonathonbyrdziak / negative-keywords-porn.js
Last active December 28, 2023 02:02
Giant List of Negative Porn Keywords To Exclude From Google Adwords
// Giant List of Negative Porn Keywords To Exclude From Google Adwords
adult film
adult movie
adult video
anal
ass
bara
barely legal
bdsm
bestiality
@jonathonbyrdziak
jonathonbyrdziak / .htaccess
Created May 1, 2015 16:23
enabling cross domain fonts and css for cdn subdomains
# ----------------------------------------------------------------------
# CORS-enabled images (@crossorigin)
# ----------------------------------------------------------------------
# Send CORS headers if browsers request them; enabled by default for images.
# developer.mozilla.org/en/CORS_Enabled_Image
# blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
# hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
# wiki.mozilla.org/Security/Reviews/crossoriginAttribute
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
@jonathonbyrdziak
jonathonbyrdziak / cron.class.php
Created April 3, 2012 22:13
Wordpress Cron Job Class. Makes Cronning a snap!
<?php
/**
* @Author Anonymous
* @link http://www.redrokk.com
* @Package Wordpress
* @SubPackage RedRokk Library
* @copyright Copyright (C) 2011+ Redrokk Interactive Media
*
* @version 0.1
*/
@jonathonbyrdziak
jonathonbyrdziak / Collection.php
Created April 17, 2015 14:22
Sorting Configurable Product Options
<?php
/**
* Magento 1.9.1 has a problem Sorting Configurable Product Attribute Options and Dropdowns
* [solved] File Patched by Jonathon Byrd
* http://magentosupport.help/knowledgebase/solved-sort-configurable-product-attribute-options-and-dropdowns/
*
* Magento
*
* NOTICE OF LICENSE
*
@jonathonbyrdziak
jonathonbyrdziak / CitiesArray.php
Created August 18, 2010 20:28
Cities Array :: An array of USA cities, as of April 2010
array(
'ALABAMA'=>
array('ABBEVILLE','ADAMSVILLE','ADDISON','AKRON','ALABASTER','ALBERTVILLE','ALEXANDER CITY','ALEXANDRIA','ALICEVILLE','ALLGOOD','ALTOONA','ANDALUSIA','ANDERSON','ANNISTON','ARAB','ARDMORE','ARGO','ARITON','ARLEY','ASHFORD','ASHLAND','ASHVILLE','ATHENS','ATMORE','ATTALLA','AUBURN','AUTAUGAVILLE','AVON','BABBIE','BAILEYTON','BANKS','BAY MINETTE','BAYOU LA BATRE','BEAR CREEK','BEATRICE','BEAVERTON','BELK','BENTON','BERRY','BESSEMER','BILLINGSLEY','BIRMINGHAM','BLACK','BLOUNTSVILLE','BLUE MOUNTAIN','BLUE RIDGE','BLUE SPRINGS','BOAZ','BOLIGEE','BON AIR','BRANCHVILLE','BRANTLEY','BRENT','BREWTON','BRIDGEPORT','BRIGHTON','BRILLIANT','BROOKSIDE','BROOKWOOD','BRUNDIDGE','BUTLER','BYNUM','CAHABA HEIGHTS','CALERA','CAMDEN','CAMP HILL','CARBON HILL','CARDIFF','CAROLINA','CARROLLTON','CASTLEBERRY','CEDAR BLUFF','CENTER POINT','CENTRE','CENTREVILLE','CHALKVILLE','CHATOM','CHELSEA','CHEROKEE','CHICKASAW','CHILDERSBURG','CITRONELLE','CLANTON','CLAY','CLAYHATCHEE','CLAYTON','CLEVELAND','CLIO','COALING',
<?php
// Step 1 - We catch the IID forwarded to us.
$IID = $_GET['IID']; // the users Individual ID
$HEM = $_GET['HEM']; // the users hashed email
$site_id = $_GET['site_id']; // our pixel id
$client_os = $_GET['client_os'];
$client_user_agent = $_GET['client_user_agent'];
$client_device = $_GET['client_device'];
@jonathonbyrdziak
jonathonbyrdziak / bgFileInput.js
Created August 24, 2011 22:40
A function that uploads images using ajax. This is a quick and simple extension of $.ajax using jquery
/**
* Function is responsible for showing the filename when a new
* file is chosen
*
*/
(function($) { // block scope
$.fn.bgFileInput = function(){
return $(this).each(function(){
@jonathonbyrdziak
jonathonbyrdziak / Example.php
Created February 10, 2011 19:35
PayFlow Paypal Pro Payment Processing PHP Class
<?php
try {
require_once dirname(__file__).'/payflow.php';
$txn = new PayflowTransaction();
//these are provided by your payflow reseller
$txn->PARTNER = '';
$txn->USER = '';
$txn->PWD= '';
@jonathonbyrdziak
jonathonbyrdziak / CustomWidgetFile.php
Last active September 29, 2022 22:00
EMPTY WIDGET Plugin code to create a single widget in wordpress.
<?php
/**
* Duplicate this file as many times as you would like, just be sure to change the
* Empty_Widget class name to a custom name of your choice. Have fun! redrokk.com
*
* Plugin Name: Empty Widget
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Contact_RedRokk_Widget keyword to rebrand this class for your needs.
* Author: RedRokk Interactive Media
* Version: 1.0.0
* Author URI: http://www.redrokk.com
@jonathonbyrdziak
jonathonbyrdziak / post.class.php
Created February 21, 2012 18:59
WORDPRESS Custom Post Type. Includes Permalinks and menu navigation links
<?php
/**
* @Author Anonymous
* @link http://www.redrokk.com
* @Package Wordpress
* @SubPackage RedRokk Library
* @copyright Copyright (C) 2011+ Redrokk Interactive Media
*
* @version 2.0
*/