Skip to content

Instantly share code, notes, and snippets.

View bmalloy's full-sized avatar

Brendan Malloy bmalloy

  • ibstudios
  • United States
View GitHub Profile
require 'benchmark'
require 'json'
require 'redis'
require 'oj'
# -----------------
puts "Initialize variables.."
# Initialize connection to Redis via unix socket
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Sample Form</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js"></script>
<script type="text/javascript" src="https://js.stripe.com/v1/"></script>
<script type="text/javascript">