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
///////////////////////////////////// | |
// In the promotion rule application: | |
rule = new Rule(); | |
rule.callbacks.get_condition_options = function(type, property, operator, value) { | |
// Make AJAX call to services: | |
// GET /promos/rules/options?type=type&property=property&operator=operator&value=value | |
// Parse the server response into whatever return format is expected of this type of | |
// callback function (as defined by the general purpose rule system) |
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
require 'rubygems' | |
require 'pp' | |
# ------- | |
cond1 = { | |
:type => 'transaction_field', | |
:params => { | |
:field => 'store_id', | |
:operator => 'equals', | |
:value => 9 |
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
require 'ruby-processing' | |
class Radiohead < Processing::App | |
load_libraries :opengl, :video | |
include_package "processing.opengl" | |
include_package "processing.video" | |
def setup | |
render_mode OPENGL |
NewerOlder