Skip to content

Instantly share code, notes, and snippets.

View jdennes's full-sized avatar

James Dennes jdennes

View GitHub Profile
@jdennes
jdennes / LICENSE
Last active March 7, 2024 04:40
Subscribing to a Campaign Monitor list using AJAX
The MIT License (MIT)
Copyright (c) James Dennes
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@jdennes
jdennes / .gitignore
Created October 19, 2011 08:05
Prototype of a super-simple feedparser web service
.DS_Store
*.pyc
web
feedparser.py
sgmllib3.py
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:apigee="http://api.apigee.com/wadl/2010/07/"
xmlns="http://wadl.dev.java.net/2009/02"
xsi:schemaLocation="http://wadl.dev.java.net/2009/02 http://apigee.com/schemas/wadl-schema.xsd http://api.apigee.com/wadl/2010/07/ http://apigee.com/schemas/apigee-wadl-extensions.xsd">
<resources base="https://api.createsend.com/api/v3">
<resource path="clients.{format}">
<param name="format" type="xsd:string" style="template" required="true" default="json">
<option value="json" mediaType="application/json"/>
@jdennes
jdennes / gist:1925019
Last active October 1, 2015 04:58
A more valuable git log.
# A more valuable git log
alias gl='git log --graph --pretty="format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset"'
@jdennes
jdennes / cm-basic-subscribe.html
Created August 7, 2012 14:47
The most basic Campaign Monitor subscribe form
<!-- The most basic Campaign Monitor subscribe form -->
<form action="http://jamesd.createsend.com/t/r/s/hujtkt/" method="post" id="subForm">
<label for="hujtkt-hujtkt">Email:</label><br />
<input type="text" name="cm-hujtkt-hujtkt" id="hujtkt-hujtkt" /><br />
<input type="submit" value="Subscribe" />
</form>
@jdennes
jdennes / HISTORY.md
Created October 24, 2012 15:09
Generates a HISTORY.md file for your repo based on tags and commits

createsend-ruby history

v2.3.0 - 10 Oct, 2012 (6639c1f6)

  • Added support for creating campaigns from templates.
  • Updated shoulda dependency.
  • Added support for unsuppressing an email address.
  • Adding custom field data to expected output from getting active subscribers. This clearly documents the data structure to be expected for multi option multi select fields.
  • Removed Alt field from Singleline elements in test (singleline tags don't support alt text).
  • Version 2.3.0
@jdennes
jdennes / Gemfile
Last active December 12, 2015 06:38
Rack application to demonstrate authenticating with the Campaign Monitor API using OAuth. Uses the sinatra, omniauth-createsend, and createsend gems.
source :rubygems
gem 'sinatra'
gem 'omniauth-createsend'
gem 'createsend'
@jdennes
jdennes / Procfile
Last active December 31, 2021 09:24
Flask application to demonstrate authenticating with the Campaign Monitor API using OAuth. Uses the createsend, Flask, and Flask-OAuth packages.
web: python app.py
@jdennes
jdennes / Procfile
Last active December 12, 2015 10:48
Another example Flask application to demonstrate authenticating with the Campaign Monitor API using OAuth. This example only uses the createsend and Flask packages.
web: python app.py
@jdennes
jdennes / Gemfile
Last active October 14, 2021 05:17
Another example Rack application to demonstrate authenticating with the Campaign Monitor API using OAuth. This example only uses the sinatra and createsend gems.
source :rubygems
gem 'sinatra'
gem 'createsend'