Skip to content

Instantly share code, notes, and snippets.

View cassidoo's full-sized avatar
⌨️
sleepy

Cassidy Williams cassidoo

⌨️
sleepy
View GitHub Profile
@cassidoo
cassidoo / ParseProductsForSearching
Created August 9, 2013 23:45
If you have "product" JSON objects, you can use this to parse the title and search Amazon and Ebay.
var getResults = function(/*successResponse*/){
// Dummy data examples
var obj = [{
"title": "MICHAEL Michael Kors Women\u0027s 3/4 Double-Breasted Hooded Trench,Khaki,Medium",
"imagePath": "http://static8.superfish.com/images_np/shared/sys_v2/images/un/30-03-2011/un-pricegrabber24-03-2011_03-25- 20/_Request_1132/source_125/category_4230_UNIFIED_COATS_W/detail/342122213_342122259",
"internalId": "342122259",
"price": "175.00$",
"merchantName": "Amazon",
@cassidoo
cassidoo / State Picker
Created July 31, 2013 17:00
I didn't feel like ever having to make this again. An HTML U.S. State picker dropdown. You're welcome.
<select name="State">
<option value="" selected="selected">Select a State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>