This file contains 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
/** | |
Invoke a method in an RPC ( REST-LIKE ) means. | |
@param String queue - the name of the queue youd like to invoke | |
@param Object message - the props object for this invocation. eg { username: 'bren', password: 'mypass' } | |
@param Function callback - OPTIONAL, a callback to fire with the response ; the response will be JSON parsed | |
@param Object options - OPTIONAL header options to pass on with your STOMP request - see https://www.rabbitmq.com/stomp.html for details | |
@return Promise - resolves with the JSON parsed reponse from the server. | |
**/ |
This file contains 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 React = require( 'react' ); | |
class MixableComponent extends React.Component{ | |
constructor( props ){ | |
//when we can do arrow functions - remove this. | |
this.mix = this.mix.bind( this ); | |
if( props.mixins ) |
This file contains 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
document.addEventListener( 'DOMContentLoaded', function() { | |
var parentNode = document.querySelector('#paypalButon'); | |
PAYPAL.apps.ButtonFactory.create( 'YOUR PAYPAL ID', { | |
button: { value: 'buynow' }, | |
name: { value: 'Some Product' }, | |
quantity: { value: '1' }, | |
amount: { value: '5.99' }, | |
currency: { value: 'AUD' }, |