Skip to content

Instantly share code, notes, and snippets.

View twanlass's full-sized avatar

Tyler Wanlass twanlass

View GitHub Profile
@twanlass
twanlass / gist:3730160
Created September 15, 2012 22:38
Simple Overscroll html structure
<div id="thumb_popout">
<div id="scroll_wrapper">
<div id="thumbnails_wrapper" style="width: 1815px;">
<ul>
<li><img src="img/dev/birds1.jpeg"></li>
<li><img src="img/dev/birds2.jpeg"></li>
<li><img src="img/dev/bridge1.jpeg"></li>
<li><img src="img/dev/bridge2.jpeg"></li>
</ul>
</div>
@twanlass
twanlass / gist:5223629
Created March 22, 2013 18:31
Example - using embedded checkout with Google Analytics for tracking sales.
<!DOCTYPE html>
<head>
<title>Example Checkout w/ Google Analytics Tracking</title>
</head>
<body>
<!-- Need this included just once on any page you're selling something. Best to probably globally include it. -->
<script type="text/javascript" src="https://www.simplegoods.co/assets/embed.js"></script>
<!-- You probably already have jQuery included in your site. Here for completeness -->
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");
@twanlass
twanlass / Instant-Payment-Notifications.json
Last active April 19, 2016 04:51
Instant-Payment-Notifications
{
"referenceId": "130716-19-300",
"referrer": "twitter",
"price": 5.99,
"buyerEmail": "jsmith@example.com",
"productName": "Example Product",
"purchaseDate": "2016-04-18T15: 20: 28Z",
"total": 5.99,
"discountCode": "15OFF",
"productId": "JUAZYXIU"
CREATE TABLE sales (id INT(11) PRIMARY KEY NOT NULL, buyerEmail VARCHAR(40) NOT NULL, purchaseDate DATETIME NOT NULL, price FLOAT NOT NULL, total FLOAT NOT NULL, productName VARCHAR(40) NOT NULL);
[sgbutton link="https://www.simplegoods.co/i/UANKYFXF" text="Buy Now - $4.99"]
{
"purchase_date": "2022-02-20T00:28:43Z",
"reference_id": "999999-99-999",
"referrer": "simplegoods.co",
"customer": {
"email": "gob@bluth-development.com",
"country": "United States",
},
"charge": {
"total": "$29.95",
@twanlass
twanlass / socialchat.html
Created October 10, 2018 14:43
Buffer SocialChat Example
<html>
<body>
<!-- Buffer SocialChat settings -->
<script> var bcwConfig = bcwConfig || {
"title": "Happy there!",
"subtitle": "Have a question or need help?",
"facebookText": "Message Us",
"facebookId": "facebook",
"twitterText": "DM Us",
"twitterId": "17874544",
function sendGoalTrackerEmail() {
var emailAddress = 'you@you.com';
var subject = 'A Subject Line';
var message = 'Your message';
MailApp.sendEmail(emailAddress, subject, message, {
htmlBody: message
});
}