Skip to content

Instantly share code, notes, and snippets.

View fernyb's full-sized avatar

Fernando Barajas fernyb

View GitHub Profile
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
@nbibler
nbibler / ClientController.rb
Created January 14, 2009 15:56
Using Remit with AmazonFPS
##
# This would be visited by the person ultimately paying for the service or
# product, sometimes referred to as your "end customer".
#
class ClientController < ApplicationController
##
# Generate and redirect the client to the single use payment pipeline, using
# the recipient token collected earlier.
#