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 File.dirname(__FILE__) + '/../spec_helper' | |
require 'carrierwave/test/matchers' | |
describe Attachment do | |
include CarrierWave::Test::Matchers | |
it "should be valid" do | |
Attachment.new.should be_valid | |
end | |
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
class AttachmentUploader < CarrierWave::Uploader::Base | |
# Include RMagick or ImageScience support: | |
# include CarrierWave::RMagick | |
# include CarrierWave::ImageScience | |
# Choose what kind of storage to use for this uploader: | |
# storage :file | |
storage :fog |
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
#import <Foundation/Foundation.h> | |
@interface NSDictionary (JSONCategory) | |
+ (NSDictionary*)dictionaryWithContentsOfJSONURLString: (NSString*)url; | |
- (NSData*)toJSON; | |
- (void)pushToURLString: (NSString *)urlString method:(NSString *)method delegate: (id)delegate; | |
@end | |
#import "NSDictionary+JSONCategory.h" |
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
' Each worker currently uses Net.Mail.SmtpClient to drop the message into the IIS outgoing mail directory. | |
' For SendGrid we would change the code below as follows: | |
If oSmtpClient Is Nothing Then | |
oSmtpClient = New System.Net.Mail.SmtpClient | |
oSmtpClient.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis | |
End If | |
oSmtpClient.Send(oEmail) | |
' With SendGrid this would become: |
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
runDealRules: function(){ | |
this.freeDVRForExistingCustomers(); | |
this.kmaBoxPricing(); | |
this.showPaqueBundlesIfQualified(); | |
this.txKMABundlesSwap(); | |
this.freeDVRForDirectSalesExludingTX(); | |
}, | |
// If the environment is direct sales and there is no tx offer, | |
// Add the free DVR offer. |
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
<!-- This isn't really a big deal, but if this html: --> | |
<table cellpadding="0" cellspacing="0" | |
border="0" align="left" width="310" height= | |
"105" class= | |
"border-bottom-mobile fill-width-mobile feature-hero-area" | |
style="width:310px"> | |
<tr> | |
<td style="padding-left: 10px;" class= | |
"pad-bottom-mobile no-left-padding-mobile"> |