Skip to content

Instantly share code, notes, and snippets.

jQuery(document).ready(function($){
$('form').submit(function(event){
//if analytics object exists
if(window._gat){
event.preventDefault();
optinForm = this;
_gaq.push(['_set','hitCallback', function(){
optinForm.submit();
}]);
_gaq.push(['_trackEvent', 'Forms', 'Submit', 'hbsanewtraffic']);
@johnzuh
johnzuh / gist:7099873
Created October 22, 2013 12:34
SABC form extension for magento android app
/**
* Magento Mobile
*
* NOTICE OF LICENSE
*
* This source file is subject to the Magento Mobile License
* that is bundled with this package in the file LICENSE_MOBILE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.magentocommerce.com/license/mobile-source-code
* If you did not receive a copy of the license and are unable to
@johnzuh
johnzuh / gist:7098304
Last active December 26, 2015 05:09
Uncaught exception in localhost
Warning: Uncaught exception 'TYPO3\Flow\Error\Exception' with message 'Notice: Undefined variable: exception in /opt/local/apache2/htdocs/TYPO3-Neos/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Persistence_Doctrine_Query.php line 166' in /opt/local/apache2/htdocs/TYPO3-Neos/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Error/ErrorHandler.php:77 Stack trace: #0 /opt/local/apache2/htdocs/TYPO3-Neos/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Persistence_Doctrine_Query.php(166): TYPO3\Flow\Error\ErrorHandler->handleError(8, 'Undefined varia...', '/opt/local/apac...', 166, Array) #1 /opt/local/apache2/htdocs/TYPO3-Neos/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Persistence_Doctrine_QueryResult.php(48): TYPO3\Flow\Persistence\Doctrine\Query_Original->getResult() #2 /opt/local/apache2/htdocs/TYPO3-Neos/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Persistence_Doctrine_QueryResult.php(97): TYPO3\Flow\Persistence\Doct
@johnzuh
johnzuh / gist:7085123
Created October 21, 2013 14:47
config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:1897: checking for Cygwin environment
configure:1913: /usr/bin/clang -c -pipe -Os -arch x86_64 -I/opt/local/include conftest.c 1>&5
configure:1909:8: error: use of undeclared identifier '__CYGWIN32__'
return __CYGWIN__;
^
configure:1907:20: note: expanded from macro '__CYGWIN__'
#define __CYGWIN__ __CYGWIN32__
@johnzuh
johnzuh / gist:7083807
Created October 21, 2013 13:23
index.php after restarting browser.
<?php
/* *
* This script belongs to the TYPO3 Flow framework. *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
* The TYPO3 project - inspiring people to share! *
@johnzuh
johnzuh / gist:7076013
Created October 20, 2013 22:12
My vhosts setting
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#