Skip to content

Instantly share code, notes, and snippets.

@gladisihor
Last active November 7, 2019 15:05
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 gladisihor/e661acab8c90dff31787c18ec13b1730 to your computer and use it in GitHub Desktop.
Save gladisihor/e661acab8c90dff31787c18ec13b1730 to your computer and use it in GitHub Desktop.
{"lastUpload":"2019-11-07T15:04:59.504Z","extensionVersion":"v3.4.3"}
[
{
"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": "d0bfc4ab-1d3a-4487-8782-7cf6027b4fff",
"publisherId": "ms-vscode.csharp",
"publisherDisplayName": "ms-vscode"
},
"name": "csharp",
"publisher": "ms-vscode",
"version": "1.21.6"
},
{
"metadata": {
"id": "2335b326-c334-4e81-bc51-c408fcec6e7c",
"publisherId": "waderyan.gitblame",
"publisherDisplayName": "waderyan"
},
"name": "gitblame",
"publisher": "waderyan",
"version": "3.0.1"
},
{
"metadata": {
"id": "5960f38e-0bbe-4644-8f9c-9c8824e82511",
"publisherId": "donjayamanne.githistory",
"publisherDisplayName": "donjayamanne"
},
"name": "githistory",
"publisher": "donjayamanne",
"version": "0.4.6"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "10.1.2"
},
{
"metadata": {
"id": "aaf6ba60-786a-416e-91d6-00ac390fb478",
"publisherId": "nickdodd79.gulptasks",
"publisherDisplayName": "nickdodd79"
},
"name": "gulptasks",
"publisher": "nickdodd79",
"version": "1.3.1"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "1.9.1"
},
{
"metadata": {
"id": "90a37ca1-92a2-488a-b196-7a8c0b0127ea",
"publisherId": "ms-vscode.vscode-typescript-tslint-plugin",
"publisherDisplayName": "ms-vscode"
},
"name": "vscode-typescript-tslint-plugin",
"publisher": "ms-vscode",
"version": "1.2.2"
}
]
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "shift+alt+d",
"command": "workbench.view.debug"
},
{
"key": "ctrl+shift+d",
"command": "-workbench.view.debug"
},
{
"key": "ctrl+shift+d",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+shift+alt+i",
"command": "editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus"
},
{
"key": "shift+alt+i",
"command": "-editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus"
},
{
"key": "alt+f2",
"command": "editor.action.dirtydiff.next",
"when": "editorTextFocus"
},
{
"key": "alt+f3",
"command": "-editor.action.dirtydiff.next",
"when": "editorTextFocus"
},
{
"key": "shift+alt+f2",
"command": "editor.action.dirtydiff.previous",
"when": "editorTextFocus"
},
{
"key": "shift+alt+f3",
"command": "-editor.action.dirtydiff.previous",
"when": "editorTextFocus"
},
{
"key": "alt+f3",
"command": "editor.action.changeAll",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+f2",
"command": "-editor.action.changeAll",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "tab",
"command": "editor.emmet.action.expandAbbreviation",
"when": "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorReadonly && !editorTabMovesFocus"
},
{
"key": "tab",
"command": "-editor.emmet.action.expandAbbreviation",
"when": "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorReadonly && !editorTabMovesFocus"
},
{
"key": "alt+space",
"command": "toggleSuggestionFocus",
"when": "suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+alt+space",
"command": "-toggleSuggestionFocus",
"when": "suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+alt+d",
"command": "editor.emmet.action.removeTag"
},
{
"key": "alt+d",
"command": "editor.emmet.action.wrapWithAbbreviation"
},
{
"key": "ctrl+shift+alt+l",
"command": "expandLineSelection",
"when": "textInputFocus"
},
{
"key": "ctrl+l",
"command": "-expandLineSelection",
"when": "textInputFocus"
},
{
"key": "ctrl+l",
"command": "workbench.action.gotoLine"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "ctrl+shift+alt+enter",
"command": "workbench.action.terminal.findNext",
"when": "terminalFindWidgetFocused"
},
{
"key": "shift+enter",
"command": "-workbench.action.terminal.findNext",
"when": "terminalFindWidgetFocused"
},
{
"key": "ctrl+shift+alt+enter",
"command": "editor.action.previousMatchFindAction",
"when": "editorFocus && findInputFocussed"
},
{
"key": "shift+enter",
"command": "-editor.action.previousMatchFindAction",
"when": "editorFocus && findInputFocussed"
},
{
"key": "ctrl+shift+alt+enter",
"command": "editor.action.extensioneditor.findPrevious",
"when": "webviewFindWidgetFocused && !editorFocus && activeEditor == 'workbench.editor.extension'"
},
{
"key": "shift+enter",
"command": "-editor.action.extensioneditor.findPrevious",
"when": "webviewFindWidgetFocused && !editorFocus && activeEditor == 'workbench.editor.extension'"
},
{
"key": "ctrl+shift+alt+enter",
"command": "editor.action.webvieweditor.findPrevious",
"when": "webviewFindWidgetFocused && !editorFocus && activeEditor == 'WebviewEditor'"
},
{
"key": "shift+enter",
"command": "-editor.action.webvieweditor.findPrevious",
"when": "webviewFindWidgetFocused && !editorFocus && activeEditor == 'WebviewEditor'"
},
{
"key": "ctrl+shift+alt+enter",
"command": "settings.action.focusPreviousSetting",
"when": "inSettingsSearch"
},
{
"key": "shift+enter",
"command": "-settings.action.focusPreviousSetting",
"when": "inSettingsSearch"
},
{
"key": "shift+enter",
"command": "editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+enter",
"command": "-editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+k",
"command": "keybindings.editor.recordSearchKeys",
"when": "inKeybindings && inKeybindingsSearch"
},
{
"key": "alt+k",
"command": "-keybindings.editor.recordSearchKeys",
"when": "inKeybindings && inKeybindingsSearch"
},
{
"key": "shift+alt+left",
"command": "editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "shift+alt+left",
"command": "-editor.action.smartSelect.shrink",
"when": "editorTextFocus"
}
]
{
"css.lint.unknownVendorSpecificProperties": "warning",
"css.lint.zeroUnits": "warning",
"eslint.alwaysShowStatus": true,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"files.insertFinalNewline": false,
"git.autofetchPeriod": 300,
"git.confirmEmptyCommits": false,
"html.format.wrapLineLength": 200,
"emmet.extensionsPath": "~/Emmet",
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.insertSpaces": false,
"editor.renderWhitespace": "all",
"editor.minimap.renderCharacters": false,
"editor.minimap.maxColumn": 200,
"editor.minimap.showSlider": "always",
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"telemetry.enableTelemetry": false,
"workbench.settings.useSplitJSON": true,
"sync.gist": "e661acab8c90dff31787c18ec13b1730",
"sync.forceUpload": true,
"sync.autoDownload": false,
"typescript.preferences.quoteStyle": "single",
"files.associations": {
"*.config": "javascript"
}
}
{
// Place your snippets for html 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 log 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"
}
}
@jsninjabot
Copy link

К сожалению неверно. Входные данные:

[ { title: 'next-screw', left: 7, right: 8 },
  { title: 'mature-can', left: 1, right: 20 },
  { title: 'draconian-position', left: 9, right: 10 },
  { title: 'irritating-push', left: 15, right: 16 },
  { title: 'wrathful-sheep', left: 13, right: 18 },
  { title: 'unbecoming-sock', left: 4, right: 19 },
  { title: 'towering-cellar', left: 2, right: 3 },
  { title: 'blessed-bed', left: 6, right: 11 },
  { title: 'pure-maid', left: 5, right: 12 },
  { title: 'ideal-window', left: 14, right: 17 } ]

Ожидаемый результат:

<ul><li>mature-can<ul><li>towering-cellar</li><li>unbecoming-sock<ul><li>pure-maid<ul><li>blessed-bed<ul><li>next-screw</li><li>draconian-position</li></ul></li></ul></li><li>wrathful-sheep<ul><li>ideal-window<ul><li>irritating-push</li></ul></li></ul></li></ul></li></ul></li></ul>

Полученный результат:

<ul><li>mature-can<ul><li>unbecoming-sock<ul><li>pure-maid<ul><li>blessed-bed<ul><li>next-screw</li><li>draconian-position</li></ul></li></ul></li><li>wrathful-sheep<ul><li>ideal-window<ul><li>irritating-push</li></ul></li></ul></li></ul></li><li>towering-cellar</li></ul></li></ul>

Пожалуйста, пришлите еще одно письмо после исправления проблемы

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