Skip to content

Instantly share code, notes, and snippets.

@rossvz
rossvz / cloudSettings
Last active August 22, 2020 19:24
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-22T19:23:59.897Z","extensionVersion":"v3.4.3"}
@rossvz
rossvz / layout.kbd.json
Last active February 25, 2018 00:31 — forked from mmynsted/layout.kbd.json
Untitled Keyboard Layout
[
[
"~\n`",
"F1",
"F2",
"F3",
"F4",
"F5",
"F6",
"F7",
@rossvz
rossvz / layout.kbd.json
Created February 23, 2018 22:42 — forked from mmynsted/layout.kbd.json
Untitled Keyboard Layout
[
[
"esc",
"!\n1",
"@\n2",
"#\n3",
"$\n4",
"%\n5",
"^\n6",
"&\n7",
@rossvz
rossvz / layout.kbd.json
Last active February 25, 2018 00:31 — forked from mmynsted/layout.kbd.json
Untitled Keyboard Layout
[
[
{
"a": 7
},
"",
"",
"",
"",
"",
@rossvz
rossvz / csv import validate error
Created May 6, 2017 18:56
error is thrown when trying to import valid csv
May 06 14:53:17 sellr-bws-staging app/web.1: error: validateProducts error {}
May 06 14:53:17 sellr-bws-staging app/web.1: error: importProductsToStore error {}
May 06 14:53:17 sellr-bws-staging app/web.1:
May 06 14:53:17 sellr-bws-staging app/web.1: { message: 'Validating products status failed',
May 06 14:53:17 sellr-bws-staging app/web.1: error:
May 06 14:53:17 sellr-bws-staging app/web.1: TypeError: Cannot read property 'forEach' of undefined
May 06 14:53:17 sellr-bws-staging app/web.1: at ProductDataProvider.validateProducts.err [as validateProducts] (/app/api/modules/products/dp.mysql.products.js:894:19)
May 06 14:53:17 sellr-bws-staging app/web.1: at DataProviderIntf.validateProducts (/app/interfaces/DataProviderIntf.js:695:13)
May 06 14:53:17 sellr-bws-staging app/web.1: at StoreManager.importProductsToStore (/app/api/modules/storedb/StoreManager.js:177:10)
May 06 14:53:17 sellr-bws-staging app/web.1: at router.post (/app/api/modules/storedb/store
@rossvz
rossvz / sample_ads.json
Created October 14, 2016 21:40
this is the reponse from the api when getting ads for an account. Contains target device as well as schedule.
[
{
"adId": 860,
"brand": null,
"createdBy": "Test Stripe Store",
"createdDate": "2016-10-04T18:58:53.000Z",
"description": null,
"name": "confetti",
"accessCtl": 0,
"preferences": {
@rossvz
rossvz / filters_tags.js
Created October 7, 2016 13:42
adding tags and filter based on property
plan.products.forEach(function(prod){
if(prod.properties.topic.value){
prod.tags = [] 
prod.properties.topic.value.forEach(function(topic){
prod.tags.push({
filter: "Topic",
choice: topic,
active: true,
selected: false
})
{
_id: ObjectId("57e5837fada53b44c4cd7c8e"),
custom: true,
storeId: NumberLong("301"),
accountId: NumberLong("10053"),
label: "Beam Products",
planId: NumberLong("276"),
headerView: "http://www.cardkit.io/pages/json/Sellr%20App/Live/beam",
listView: "http://www.cardkit.io/cards/json/sellr_app/copy-beam-list",
detailView: "http://www.cardkit.io/cards/json/sellr_app/copy-beam-detail",
{
"planId":273,
"description":"Here you can add a description about this plan",
"deviceId":1073,
"type":3,
"label":"Resources",
"accountId":1053,
"color":{
"label":"Red",
"color":"#CC0000",
{
"products": [
{
"productId": 198397,
"name": "Jack Daniels Tennessee Fire",
"quantity": 3,
"price": "18.99",
"slot": "A1",
"planId": 238,
"planLabel": "Whiskey",