SQL means Structured Query Language. It is a language designed to manage data stored in relational databases.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function createTerminalLink(url: string, text?: string) { | |
return `\u001B]8;;${url}\u0007${text ?? url}\u001B]8;;\u0007`; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE | |
segments | |
SET | |
name = REPLACE(name, '%.protonmail.com%', '.proton.me'); | |
UPDATE | |
urls | |
SET | |
url = REPLACE(url, '%.protonmail.com%', '.proton.me'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN apt-get update && apt-get install -y \ | |
autoconf \ | |
bison \ | |
build-essential \ | |
curl \ | |
gcc-6 \ | |
git \ | |
libffi-dev \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function add(x: number, y: number): number | |
export function subtract(x: number, y: number): number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
NewerOlder