Skip to content

Instantly share code, notes, and snippets.

View thinkinglemur's full-sized avatar

Donnie Bachan thinkinglemur

View GitHub Profile
@thinkinglemur
thinkinglemur / .editorconfig
Last active January 29, 2020 07:49
.editorconfig file example for js
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
charset = utf-8
max_line_length = 80
@thinkinglemur
thinkinglemur / gist:354555e747be0a8b8bbd
Created June 3, 2015 20:09
Adding list returns too many items in the product attribute of the sequences object
curl -X POST -H "X-Handpick-App-Id: b27aefe52f29cdbf0103173671a07114" -d '{"userId":1408749121, "query": "{\"C102\": {\"903\": 0.80, \"902\": 0.20}}", "name": "Smart and Sexy"}' https://tangystrawberry.herokuapp.com/Lists/
{
"sequences":[
{
"user":{
"userId":1408749121,
"photo":"",
"firstname":"Donnie"
},
{
"listId": "12345678990",
"query": "",
"ownerId": "2456633321545",
"lists": [{
"userId": "2456633321545",
"products": [1234,5231,1231],
"updated_on": "2015-02-14 17:55:58.615",
"created_on": "2015-02-14 17:55:58.615"
},