This file contains hidden or 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($) { | |
$.fn.gistify = function() { | |
return this.each(function() { | |
var link = $(this); | |
var href = $(this).attr('href'); | |
var gist_id = /http:\/\/gist\.github\.com\/(\d+)/.exec(href); | |
if (gist_id) { | |
link.wrap('<div id="embedded-gist-'+gist_id[1]+'">'); |
This file contains hidden or 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
{ | |
"coupon": | |
{ | |
"start_date":"2011-08-04T16:46:02-04:00", | |
"name":"25% off", | |
"created_at":"2011-08-04T16:46:02-04:00", | |
"code":"25OFF", | |
"updated_at":"2011-08-04T16:46:02-04:00", | |
"id":9, | |
"percentage":25, |
This file contains hidden or 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
{ | |
"coupon" :{ | |
"end_date": "nil" | |
} | |
} |
This file contains hidden or 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
{ | |
"coupon": | |
{ | |
"start_date":"2011-08-04T16:46:02-04:00", | |
"name":"25% off", | |
"created_at":"2011-08-04T16:46:02-04:00", | |
"code":"25OFF", | |
"updated_at":"2011-08-04T17:47:02-04:00", | |
"id":9, | |
"percentage":25, |
This file contains hidden or 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
{ | |
["Coupon code could not be found."] | |
} |
This file contains hidden or 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
{ | |
["That coupon offer has expired."] | |
} |
This file contains hidden or 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
{ | |
["That coupon is no longer active."] | |
} |
This file contains hidden or 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
[ | |
{ | |
"signups":3, | |
"savings":10.0, | |
"revenue":100.0, | |
"name":"product #1", | |
"id":8 | |
}, | |
{ | |
"signups":0, |
This file contains hidden or 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
{"subscription":{ | |
"product_handle":"my-product", | |
"customer_attributes":{ | |
"first_name":"Joe", | |
"last_name":"Blow", | |
"email":"[email protected]" | |
}, | |
"credit_card_attributes":{ | |
"full_number":"1", | |
"expiration_month":"10", |
This file contains hidden or 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
{ | |
[["subscription","A coupon is already associated with this subscription."]] | |
} |