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.
export const waitPromise = (promiseCall, amount = 0) => (...args) => | |
new Promise(resolve => setTimeout(() => resolve(promiseCall(...args)), amount)); |
export const joinString = (delimiter, ...params) => { | |
const results = []; | |
for (let param of params) { | |
if (!param) { | |
continue; | |
} | |
const paramType = typeof param; | |
if (paramType == 'string' || paramType == 'number') { |
<!DOCTYPE html5> | |
<html> | |
<body> | |
<table> | |
<thead> | |
<tr> | |
<th>Name</th> | |
<th>Age</th> | |
</tr> | |
</thead> |
{ | |
"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});" | |
}, |
{ | |
"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, |
/** | |
* 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) { |
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.
document.body.addEventListener('focusin', (event) => { | |
console.log(document.activeElement) | |
}) |
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 |