Skip to content

Instantly share code, notes, and snippets.

View ddanger's full-sized avatar

David Dangerfield ddanger

View GitHub Profile
@ddanger
ddanger / keybindings.json
Created June 28, 2019 17:21
My VS Code Keybindings
[
{ "key": "cmd+1","command": "workbench.action.openEditorAtIndex1" },
{ "key": "cmd+2","command": "workbench.action.openEditorAtIndex2" },
{ "key": "cmd+3","command": "workbench.action.openEditorAtIndex3" },
{ "key": "cmd+4","command": "workbench.action.openEditorAtIndex4" },
{ "key": "cmd+5","command": "workbench.action.openEditorAtIndex5" },
{ "key": "cmd+6","command": "workbench.action.openEditorAtIndex6" },
{ "key": "cmd+7","command": "workbench.action.openEditorAtIndex7" },
{ "key": "cmd+8","command": "workbench.action.openEditorAtIndex8" },
{ "key": "cmd+9","command": "workbench.action.openEditorAtIndex9" },
@ddanger
ddanger / settings.json
Last active July 8, 2019 21:40
My VS Code User Settings
{
"breadcrumbs.enabled": true,
"diffEditor.renderSideBySide": true,
"editor.insertSpaces": true,
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.formatOnType": false,
"editor.minimap.enabled": false,
"editor.minimap.maxColumn": 80,
"editor.minimap.renderCharacters": false,
/**
* Create a Vuex store module to represent states for an asynchronous API getter.
*
* Includes defaultState, actions, and mutations for a standard value gotten via asynchronous call.
* See defaultState() function for list of states included.
*
* Usage:
* Assuming we have an async call to get documents (getDocuments) which takes a payload object as an arg, here's what we can do:
*
* ----- store.js -----