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 orderForm = // OrderForm you get by running pipeline containing Enticify.Promotions | |
// Get all of the Enticify Promotion Events | |
var promoEvents = orderForm.GetAllPromoEvents(); | |
// Filter for those that partially qualified | |
var partiallyQualified = promoEvents.OfType<PromoPartiallyQualified>(); | |
// Loop through the events looking at quantity and money distances? Or whatever! |
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 "rack/jekyll" | |
require "rack-rewrite" | |
use Rack::Rewrite do | |
rewrite %r{^\/(.+)\/(\?.*)?$}, '/$1$2' | |
r301 %r{.*}, 'http://bentaylor.org$&', :if => Proc.new {|rack_env| | |
rack_env['SERVER_NAME'] != 'bentaylor.org' | |
} |
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
public static IEnumerable<T> Promise<T>(this IEnumerable<T> enumerable) | |
{ | |
return enumerable ?? Enumerable.Empty<T>(); | |
} |
NewerOlder