Special attributes provided by Vue, which applies reactive behavior to the rendered DOM.
Each directive is prefixed with a v-. Here a list of all directives:
| const request = new XMLHttpRequest | |
| const URL = 'https://google.com.br' | |
| // `async` by default, since the last function param is ommited | |
| request.open('GET', URL) | |
| request.send() | |
| // use `load` instead of `ready` so there is no need to do more checks | |
| // related to status code and stuff | |
| request.addEventListener('load', handleResponse) |
| /** | |
| * @function | |
| * | |
| * Returns the value of a path to be found within an object. | |
| * | |
| * @param {Object} [from] The object to search | |
| * @param {Array} [path] The path to search within object | |
| * | |
| * @return {*} The value from path search | |
| */ |
| rows = [ | |
| [9, 0, 5, 0, 0, 8, 0, 0, 2], | |
| [0, 0, 8, 0, 0, 0, 5, 0, 0], | |
| [0, 4, 0, 0, 3, 5, 0, 6, 9], | |
| [4, 0, 3, 7, 0, 2, 0, 0, 0], | |
| [0, 0, 7, 0, 4, 0, 2, 0, 0], | |
| [0, 0, 0, 3, 0, 9, 6, 0, 4], | |
| [2, 8, 0, 4, 9, 0, 0, 1, 0], | |
| [0, 0, 9, 0, 0, 0, 4, 0, 0], | |
| [5, 0, 0, 8, 0, 0, 7, 0, 6] |
| export function add(x: number, y: number): number | |
| export function subtract(x: number, y: number): number |
| FROM ubuntu:18.04 | |
| RUN apt-get update && apt-get install -y \ | |
| autoconf \ | |
| bison \ | |
| build-essential \ | |
| curl \ | |
| gcc-6 \ | |
| git \ | |
| libffi-dev \ |
| const RANKS_WEIGHTS = { | |
| 'Iron 1': 1, | |
| 'Iron 2': 2, | |
| 'Iron 3': 3, | |
| 'Bronze 1': 4, | |
| 'Bronze 2': 5, | |
| 'Bronze 3': 6, | |
| 'Silver 1': 7, | |
| 'Silver 2': 8, | |
| 'Silver 3': 9, |
| const getMEIDebt = (indexBegin, length) => { | |
| const NODE_SELECTOR = '.total.updatable.text-center'; | |
| const sum = (x, y) => x + y; | |
| const normalizeValue = (value) => | |
| value.replace('R$', '').replace(',', '.').trim(); | |
| return Array.from(document.querySelectorAll(NODE_SELECTOR)) | |
| .slice(indexBegin, length) | |
| .map((node) => parseFloat(normalizeValue(node.innerText))) |