This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% layout none %}{% comment %} | |
/* | |
* Shopify JSON Blog Feed | |
* | |
* Copyright (c) 2016 Klaviyo (success@klaviyo.com) | |
* Licensed under the MIT license: | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
*/ | |
{% endcomment %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add this script to 'one-page-checkout.asp' --> | |
<script type="text/javascript"> | |
var _learnq = _learnq || []; | |
// Get this from https://www.klaviyo.com/account#api-keys | |
_learnq.push(['account', 'PUBLIC_API_KEY']); | |
(function () { | |
var b = document.createElement('script'); b.type = 'text/javascript'; b.async = true; | |
b.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'a.klaviyo.com/media/js/analytics/analytics.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
API_KEY = 'KLAVIYO_API_KEY' | |
TEMPLATE_ID = 'KLAVIYO_TEMPLATE_ID' | |
SUBREDDIT = 'corgi' | |
FROM_EMAIL = 'from@example.com' | |
FROM_NAME = 'Your Name' | |
TO_EMAIL = 'to@example.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#header { display: none; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Backbone Views</title> | |
</head> | |
<body> | |
<table id="foobar"></table> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript" src="http://documentcloud.github.com/underscore/underscore-min.js"></script> | |
<script type="text/javascript" src="http://backbonejs.org/backbone-min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this | |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
var pageMod = require('page-mod'); | |
var data = require('self').data; | |
var request = require('request').Request; | |
exports.main = function(options, callbacks) { | |
var pageMod = require("page-mod"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Sam Keller | |
03/11/2012 | |
routeTester.py | |
This file was written to get to know how bottle.py works and how to write | |
routes. If we wanted to, say, track which pages are clicked on our Wikipedia | |
extension for Firefox, this code would be helpful. This simple code just | |
takes in a Wikipedia page in the address and prints out a little message saying |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
// Cached regex to split keys for `delegate`. | |
var eventSplitter = /^(\S+)\s*(.*)$/; | |
var ExtendedView = Backbone.View.extend({ | |
delegateViewEvents : function (events) { | |
if (!(events || (events = this.viewEvents))) return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tornado.httpserver | |
import tornado.ioloop | |
import tornado.web | |
class MainHandler(tornado.web.RequestHandler): | |
def get(self): | |
self.write("Hello, world") | |
class AjaxHandler(tornado.web.RequestHandler): | |
def get(self): |