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 ruler(ctx, width, length) { | |
ctx.font="5px helvetica"; | |
ctx.beginPath(); | |
// metric | |
ctx.beginPath(); | |
for(var x = 1; x < length; ++x) { | |
ctx.beginPath(); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>RecurlyJS Subscribe Example</title> | |
<link rel="stylesheet" href="examples.css" type="text/css" /> | |
<link rel="stylesheet" href="../themes/default/recurly.css" type="text/css" /> | |
<script src="../lib/jquery-1.7.1.js"></script> | |
<script src="../build/recurly.js"></script> |
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
Sampling process 5677 for 3 seconds with 1 millisecond of run time between samples | |
Sampling completed, processing symbols... | |
Analysis of sampling iTerm (pid 5677) every 1 millisecond | |
Process: iTerm [5677] | |
Path: /Applications/iTerm.app/Contents/MacOS/iTerm | |
Load Address: 0x100000000 | |
Identifier: com.googlecode.iterm2 | |
Version: 1.0.0.20120203 (1.0.0.20120203) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [124] |
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
Date/Time: 2012-09-02 19:47:36 -0700 | |
OS Version: 10.8.1 (Build 12B19) | |
Architecture: x86_64 | |
Report Version: 11 | |
Command: iTerm | |
Path: /Applications/iTerm.app/Contents/MacOS/iTerm | |
Version: 1.0.0.20120203 (1.0.0.20120203) | |
Parent: launchd [124] |
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
var tcallq = []; | |
function utime() { | |
return Date.now(); | |
} | |
function call2(f,t,a) { | |
var r = f && function() { | |
return f.apply(t,a); | |
}; |
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
#!/usr/bin/env ruby | |
# Example: ./gensig 0 0123456789ABCDEF0123456789ABCDEF "[0,transactioncreate,[account_code:testac,amount_in_cents:5000,currency:USD]]" | |
require 'openssl' | |
@timestamp = ARGV[0] | |
@private_key = ARGV[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
var crypto = require('crypto'); | |
var privateKey = 'yourprivatekey'; | |
function signBillingInfo(accountCode) { | |
// copypasta from transparent post | |
function hash(data) { | |
//get the sha1 of the private key in binary | |
var shakey = crypto.createHash('sha1'); |
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
#!/usr/bin/env ruby | |
# Example: ./gensig 0 0123456789ABCDEF0123456789ABCDEF "[0,transactioncreate,[account_code:testac,amount_in_cents:5000,currency:USD]]" | |
require 'openssl' | |
@timestamp = ARGV[0] | |
@private_key = ARGV[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
Recurly.buildSubscriptionForm({ | |
target: '#recurly-subscribe', | |
afterSubscribe: function(result) { | |
var data = { | |
subscription: result | |
, somethingExtra: $('input.meta_data').val() | |
}; | |
Recurly.post('/success/url', data, {}); | |
} |
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
Recurly.buildSubscriptionForm({ | |
target: '#recurly-subscribe' | |
, planCode: 'simpleplan' | |
, successURL: 'confirmation.html' | |
, distinguishContactFromBillingInfo: false | |
, collectCompany: true | |
, privacyPolicyURL: 'http://example.com/pp' | |
, preFill: { | |
contactInfo: { | |
firstName: 'Joe' |
NewerOlder