Skip to content

Instantly share code, notes, and snippets.

@DZGoldman
Last active April 26, 2020 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DZGoldman/14a5fd50f840440eb322d54260943491 to your computer and use it in GitHub Desktop.
Save DZGoldman/14a5fd50f840440eb322d54260943491 to your computer and use it in GitHub Desktop.
{"lastUpload":"2020-04-26T19:31:38.615Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "697255a9-3f36-44c8-b084-d3b91edfb23a",
"publisherId": "HookyQR.beautify",
"publisherDisplayName": "HookyQR"
},
"name": "beautify",
"publisher": "HookyQR",
"version": "1.5.0"
},
{
"metadata": {
"id": "a6a0c5b2-d078-4bf5-a9ee-4e37054414b3",
"publisherId": "formulahendry.code-runner",
"publisherDisplayName": "formulahendry"
},
"name": "code-runner",
"publisher": "formulahendry",
"version": "0.9.17"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
},
{
"metadata": {
"id": "1ec62ca5-d7f9-4ddb-a882-e8d018c0aefd",
"publisherId": "msjsdiag.debugger-for-chrome",
"publisherDisplayName": "msjsdiag"
},
"name": "debugger-for-chrome",
"publisher": "msjsdiag",
"version": "4.12.4"
},
{
"metadata": {
"id": "5da0c8de-e8a6-4287-9ef1-632f0d6db9ad",
"publisherId": "CraigMaslowski.erb",
"publisherDisplayName": "CraigMaslowski"
},
"name": "erb",
"publisher": "CraigMaslowski",
"version": "0.0.1"
},
{
"metadata": {
"id": "be992f3f-9f22-4b66-a1d2-ecad04c28a28",
"publisherId": "abusaidm.html-snippets",
"publisherDisplayName": "abusaidm"
},
"name": "html-snippets",
"publisher": "abusaidm",
"version": "0.2.1"
},
{
"metadata": {
"id": "9791aebe-ed7a-4fb8-aead-eee8dd7bc19e",
"publisherId": "t7yang.hyper-javascript-snippets",
"publisherDisplayName": "t7yang"
},
"name": "hyper-javascript-snippets",
"publisher": "t7yang",
"version": "2.3.1"
},
{
"metadata": {
"id": "54da57eb-3718-44cf-bb67-5e4a03b35ece",
"publisherId": "ms-vscode.js-atom-grammar",
"publisherDisplayName": "ms-vscode"
},
"name": "js-atom-grammar",
"publisher": "ms-vscode",
"version": "0.1.14"
},
{
"metadata": {
"id": "083bb726-3bae-44b6-88c6-8164f2c3e632",
"publisherId": "skyran.js-jsx-snippets",
"publisherDisplayName": "skyran"
},
"name": "js-jsx-snippets",
"publisher": "skyran",
"version": "10.1.0"
},
{
"metadata": {
"id": "3b1db1fc-c7f7-4bd6-9fa4-b499dfa99a8a",
"publisherId": "shd101wyy.markdown-preview-enhanced",
"publisherDisplayName": "shd101wyy"
},
"name": "markdown-preview-enhanced",
"publisher": "shd101wyy",
"version": "0.5.3"
},
{
"metadata": {
"id": "26a529c9-2654-4b95-a63f-02f6a52429e6",
"publisherId": "zhuangtongfa.material-theme",
"publisherDisplayName": "zhuangtongfa"
},
"name": "material-theme",
"publisher": "zhuangtongfa",
"version": "3.3.1"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "3.20.0"
},
{
"metadata": {
"id": "67e66172-30c7-4478-8f5d-6eac4ae755dc",
"publisherId": "mohsen1.prettify-json",
"publisherDisplayName": "mohsen1"
},
"name": "prettify-json",
"publisher": "mohsen1",
"version": "0.0.3"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2020.2.64397"
},
{
"metadata": {
"id": "570e6089-b871-41df-9cf4-a723cb34ef01",
"publisherId": "rust-lang.rust",
"publisherDisplayName": "rust-lang"
},
"name": "rust",
"publisher": "rust-lang",
"version": "0.7.3"
},
{
"metadata": {
"id": "a84825e8-5f04-4988-b85a-4942e795bcbe",
"publisherId": "burkeholland.simple-react-snippets",
"publisherDisplayName": "burkeholland"
},
"name": "simple-react-snippets",
"publisher": "burkeholland",
"version": "1.2.2"
},
{
"metadata": {
"id": "25baab03-fe9a-40c7-b683-55c9a0a92480",
"publisherId": "JuanBlanco.solidity",
"publisherDisplayName": "JuanBlanco"
},
"name": "solidity",
"publisher": "JuanBlanco",
"version": "0.0.72"
},
{
"metadata": {
"id": "75da638c-c45a-44ea-aa3b-8570a3559810",
"publisherId": "TabNine.tabnine-vscode",
"publisherDisplayName": "TabNine"
},
"name": "tabnine-vscode",
"publisher": "TabNine",
"version": "2.7.0"
},
{
"metadata": {
"id": "2f5dd8cb-d251-4d70-abfe-ddebcb077483",
"publisherId": "octref.vetur",
"publisherDisplayName": "octref"
},
"name": "vetur",
"publisher": "octref",
"version": "0.23.0"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "1.9.1"
},
{
"metadata": {
"id": "128aec08-5c3d-473f-a233-67d15cbd42ee",
"publisherId": "infeng.vscode-react-typescript",
"publisherDisplayName": "infeng"
},
"name": "vscode-react-typescript",
"publisher": "infeng",
"version": "1.3.1"
},
{
"metadata": {
"id": "282c56aa-f02e-40b6-b55e-bfdee63cea4d",
"publisherId": "blanu.vscode-styled-jsx",
"publisherDisplayName": "blanu"
},
"name": "vscode-styled-jsx",
"publisher": "blanu",
"version": "1.5.0"
},
{
"metadata": {
"id": "9b2c953d-6ad4-46d1-b18e-7e5992d1d8a6",
"publisherId": "akamud.vscode-theme-onedark",
"publisherDisplayName": "akamud"
},
"name": "vscode-theme-onedark",
"publisher": "akamud",
"version": "2.2.1"
},
{
"metadata": {
"id": "4c808376-20ec-41d4-a934-f7601552c4f1",
"publisherId": "jcbuisson.vue",
"publisherDisplayName": "jcbuisson"
},
"name": "vue",
"publisher": "jcbuisson",
"version": "0.1.5"
},
{
"metadata": {
"id": "33d009de-dadd-4e36-bd05-2622efd62499",
"publisherId": "peakchen90.vue-beautify",
"publisherDisplayName": "peakchen90"
},
"name": "vue-beautify",
"publisher": "peakchen90",
"version": "2.0.4"
}
]
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "cmd+l",
"command": "expandLineSelection",
"when": "editorTextFocus"
},
{
"key": "cmd+i",
"command": "-expandLineSelection",
"when": "editorTextFocus"
},
{
"key": "cmd+b",
"command": "workbench.action.splitEditor"
},
{
"key": "cmd+\\",
"command": "-workbench.action.splitEditor"
},
{
"key": "cmd+\\",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+t",
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "cmd+p",
"command": "workbench.action.showAllSymbols"
},
{
"key": "cmd+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "ctrl+`",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+`",
"command": "-workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+cmd+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+cmd+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "left ctrl+",
"command": "workbench.action.previousEditor"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.previousEditor"
},
{
"key": "shift+cmd+[",
"command": "-workbench.action.previousEditor"
}
]
{
"workbench.colorTheme": "Atom One Dark",
"workbench.statusBar.visible": false,
"files.associations": {
"*.jsx": "javascriptreact"
},
"window.zoomLevel": 0,
"editor.tabCompletion": true,
"editor.snippetSuggestions": "top",
"files.autoSave": "afterDelay",
"git.enableSmartCommit": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"diffEditor.ignoreTrimWhitespace": false,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"sync.gist": "14a5fd50f840440eb322d54260943491",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
{
/*
// Place your snippets for C# here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
}
{
/*
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
}
{
/*
// Place your snippets for JavaScript React here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
}
{
/*
// Place your snippets for JSX here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
}
@DZGoldman
Copy link
Author

For react-data-grid, we'd like something like this format

{
columns:  [
      { key: 'id', name: 'ID' },
      { key: 'title', name: 'Title' }
] ,
rows: [
{       id: 1,
        title: 'blah 1',
      },
{       id: 2,
        title: 'blah 2',

      }
   ]
}

The columns array just preserves the order, requires an id and a name. There are other optional keys for columns that we may want to persist on the backend eventually ( editable: true, width: 200,resizable: true) but for, this is all we need). Rows are just the raw data. Simple as that.

@michaeljklein
Copy link

Nice. Since it's JSON, we could also add keys and not mess up current code

@DZGoldman
Copy link
Author

DZGoldman commented May 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment