This file contains hidden or 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
## changeing the working directory. | |
diegoDir='/Users/jevin/Code/personal/r/waterLevel' | |
setwd(diegoDir) | |
require(XML) | |
## getting the data from the web | |
x = readLines("http://www.ottawariver.ca/arnprior.htm") | |
tableNodes = getNodeSet(htmlParse(paste('</br>', x)), "//table") |
This file contains hidden or 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 'spec_helper' | |
# Type of discount: Free product (postcard) | |
# Conditions: Start/Stop (Aug X, Aug Y) | |
# Minimum number of specified products purchased: 1 Postcard | |
# Maximum # of total uses: 20 | |
# Used by anyone (any device as he might pass it to his friends) | |
describe 'Unique device promo code', :focus do |
This file contains hidden or 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
{ design: | |
product: 5, # The ID of the postcard product | |
pages: [ | |
images: [ | |
main_image # ID of the image uploaded elsewhere | |
] | |
, | |
text_fields: [ | |
sender_name, | |
sender_street, |
NewerOlder