One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| if [ "$color_prompt" = yes ]; then | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[0;42m\]\u@\h\[\033[0;46m\]>\w>\[\033[0m\]' | |
| # PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
| else | |
| PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | |
| fi |
| document.body.addEventListener('focusin', (event) => { | |
| console.log(document.activeElement) | |
| }) |
To define a schema you should always have type properties, which can be
"string""number" or "integer""object""array""boolean""null"type can be a single string or an array of string.
| /** | |
| * Simple wrapper around XMLHttpRequest to make ajax request | |
| * @param {string} url | |
| * @param {Object} options | |
| * @param {Function} [options.onSuccess] | |
| * @param {Function} [options.onError] | |
| * @param {string} [options.dataType] default to 'json' | |
| * @param {string} [options.method] default to 'GET' | |
| */ | |
| function ajax(url, options) { |
| { | |
| "workbench.colorTheme": "GitHub Clean White", | |
| "workbench.colorCustomizations": { | |
| "editorCursor.background": "#ffffff", | |
| "editorCursor.foreground": "#0000bb", | |
| "editor.lineHighlightBackground": "#f0f0f0", | |
| "editor.selectionBackground": "#aaeeff" | |
| }, | |
| "workbench.statusBar.visible": false, | |
| "workbench.activityBar.visible": false, |
| { | |
| "Import react": { | |
| "prefix": "imr", | |
| "body": ["import React from 'react';"], | |
| "description": "import react" | |
| }, | |
| "React useState": { | |
| "prefix": "rus", | |
| "body": "const [$2, set${2/(^.)/${1:/upcase}/}] = React.useState(${1});" | |
| }, |
| <!DOCTYPE html5> | |
| <html> | |
| <body> | |
| <table> | |
| <thead> | |
| <tr> | |
| <th>Name</th> | |
| <th>Age</th> | |
| </tr> | |
| </thead> |
| export const joinString = (delimiter, ...params) => { | |
| const results = []; | |
| for (let param of params) { | |
| if (!param) { | |
| continue; | |
| } | |
| const paramType = typeof param; | |
| if (paramType == 'string' || paramType == 'number') { |