Skip to content

Instantly share code, notes, and snippets.

var productIds = [];
$("div.search-result")
.filter(function() {
return $(this).find("div.sale-price span.money").text() == '$0.00' && $(this).find("button.orange").text() == 'Add to cart';
})
.each(function() {
productIds.push($(this).find("button[title='Add to cart']").parent().attr('action').replace('/buy/', ''));
});
var buyAllUrl = 'https://www.logos.com/buy/' + productIds.join();
console.log(buyAllUrl);
@jnobile
jnobile / MsExchangeService.cs
Created May 2, 2013 18:31
Basic wrapper around Exchange Web Services (EWS 1.2) that facilitates retrieving a public folder by path.
using System;
using System.DirectoryServices.AccountManagement;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using Microsoft.Exchange.WebServices.Data;
namespace EmailServices.Web.IntegrationTests
{