Skip to content

Instantly share code, notes, and snippets.

View mrjman's full-sized avatar

Jesse mrjman

  • Mondo Robot
  • Boulder
View GitHub Profile
@mrjman
mrjman / gtm_events.js
Last active August 29, 2015 14:02
gtm dataLayer example
jQuery(function($) {
$('.home-page-banner-register').on('click', function(e) {
dataLayer.push({
'category': 'FI_Register',
'action': 'Begin Registration',
'label': 'Hero Button Click'
});
});
$('.home-page-footer-icon-register').on('click', function(e) {
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
@mrjman
mrjman / node--partner--teaser.tpl.php
Last active August 29, 2015 14:00
node--partner--teaser.tpl.php
<?php
/**
*
*/
?>
<?php
/*****************************************
* THIS CODE IS NEW
@mrjman
mrjman / dg_helper.module
Last active August 29, 2015 13:57
Localization changes
function dg_helper_gallery_api_collections() {
...
// Old code
//
// The problem is the use of LANGUAGE_NONE
//
$albums[] = array(
'slug' => $slug,