Skip to content

Instantly share code, notes, and snippets.

View lylepratt's full-sized avatar

Lyle Pratt lylepratt

View GitHub Profile
@lylepratt
lylepratt / bettervoice-calls-to-followupboss-events.js
Last active August 29, 2015 14:16
BetterVoice Calls to FollowUpBoss Events | Hook.io
var request = require('request');
module['exports'] = function echoHttp (hook) {
var res = {};
res.params = hook.params;
var bv_data = hook.params;
//Build the Follow Up Boss Data Payload from the BV Payload.
var fub_data = {
"source": "BetterVoice.com",
@lylepratt
lylepratt / gist:d8bf84b3b7d6932e3549
Last active August 4, 2016 18:45
Grunt Task to Generate Manifest for cordova-app-loader
/* This generates a manifest file for use with the cordova-app-loader tool:
* https://github.com/markmarijnissen/cordova-app-loader
*/
/*
* You can add settings to your grunt initConfig
//jsonmanifest settings
jsonmanifest: {
generate: {
@lylepratt
lylepratt / TumblrInASubdirectoryViaAProxy.py
Created April 23, 2012 02:05
Put Your Tumblr Blog in a SubURL (subdirectory) instead of a Subdomain using a Python proxy. It's better to host your blog in a subdirectory rather than a subdomain because Google treats subdomains as totally separate sites which is bad for SEO.
def blog(request, url=""):
remote = "http://YOURTUMBLRSITE.tumblr.com"
local = ""http://www.example.com/blog"
conn = httplib2.Http()
#This is to support Tumblr's search.
if request.GET.get("q"):
urlencode = lambda s: urllib.urlencode({'x': s})[2:]
url = url+"/"+urlencode(request.GET.get("q"))
proxy_url = "%s/%s" % (remote, url)