Skip to content

Instantly share code, notes, and snippets.

@cvieth
cvieth / Shopify-Checkout-Hack.js
Last active May 20, 2023 09:51
Shopify Checkout Hack - This scipt helps to modify the Shopify Checkout Pages
/**
* Shopify Checkout Hack
*
* This scipt helps to modify the Shopify Checkout Pages. To run this script, add your
* code for each checkout step, compress your code with a tool of your choice and paste
* it to:
*
* Admin > General > Google Analytics > Additional Google Analytics Javascript
*
* @author Christoph Vieth <christoph@vieth.me>
@irazasyed
irazasyed / spintax.php
Last active February 21, 2024 17:29
PHP: Text Spinner Class - Nested spinning supported.
<?PHP
/**
* Spintax - A helper class to process Spintax strings.
*/
class Spintax
{
/**
* Set seed to make the spinner predictable.
*/
<?php
/**
* 1. create project at https://console.developers.google.com/project
* 2. enable 'Analytics API' under 'APIs & auth' / APIs
* 3. create 'NEW CLIENT ID' (OAuth client) under 'APIs & auth' / Credentials
* i. select 'Service account'
* ii. save generated key file to 'key.p12'
* iii. remember CLIENT ID
* 4. under GA account add 'Read & Analyze' access to newly generated email (access to GA Account not Property nor View)
@vzaar
vzaar / demo.html
Created October 4, 2012 14:42
vzaar bookmarks
<div id='video-container'>
<div class='vzaar_media_player'>
<object data='http://view.vzaar.com/1080935/flashplayer' height='324'
id='video' type='application/x-shockwave-flash' width='576'>
<param name='allowFullScreen' value='true' />
<param name='allowScriptAccess' value='always' />
<param name='wmode' value='transparent' />
<param name='movie' value='http://view.vzaar.com/1080935/flashplayer' />
<param name='flashvars' value='apiOn=true&amp;colourSet=grey&amp;colourBg=#ffffff&amp;border=none&amp;socialSharing=0,0,0' />
<video controls='' height='324' id='vzvid' onclick='this.play();' poster='http://view.vzaar.com/1080935/image'