O erro sintático está no uso da tag meta
dentro do elemento <body>
:
<body>
<meta charset='UTF-8'>
#!/bin/bash | |
## convert RGB to 256 terminal color | |
rgb="${1//[!0-9,]/}" # 0..255,0..255,0..255 | |
echo -n "\e[0;38;2;${rgb//,/;}m" |
#!/bin/bash | |
# | |
# List all channels in which a Twitch TV user is on chat. | |
# | |
# USAGE: | |
# ./list_channels.sh <user_id> <username> | |
# | |
# Created by Micael Levi on 22/01/2018 | |
# Copyright (c) 2018 <[email protected]> All rights reserved | |
# |
#!/bin/bash | |
## solution1: $ sh arrow_key.sh | |
## solution2: $ sh arrow_key.sh 2 [-v] | |
: ' | |
a d e f m o u ASCII | |
61 64 65 66 6D 6F 75 HEX | |
HEX ASCII | |
0a \n or \s | |
1b 5b 41 \033[A # Up arrow |
O erro sintático está no uso da tag meta
dentro do elemento <body>
:
<body>
<meta charset='UTF-8'>
Tipagem dinâmica significa que os tipos das variáveis são associadas à valores, e não à variáveis. Ou seja, o tipo de uma variável é inferido em tempo de execução, o que permite que ela seja variada no decorrer do código.
<?php
$foo = 'bar'; // tipo `string`
$foo = 123; // agora é do tipo `integer`
$foo = 1.3; // agore é do tipo `double`
B
Articles █████████████▋░░░░░░░ 65.1% | |
Videos ██████████████████▌░░ 88.3% | |
Books ████████▋░░░░░░░░░░░░ 41.4% | |
Learn React ████████████░░░░░░░░░ 57.1% | |
Learn TypeScript █████████████████████ 100.0% | |
GitHub ████████████████▊░░░░ 80.0% |
// Go to https://www.younow.com and paste the code below on console dev tools | |
const params = { | |
user: 'Iamhannahstone', | |
createdBefore: 0, | |
records: 20, | |
}; | |
fetch(`https://cdn.younow.com/php/api/channel/getInfo/user=${params.user}`) | |
.then(res => res.json()) | |
.then(data => data.userId) |
// (c) https://youtu.be/XV-u_Ow47s0?t=234 | |
// run with: node --no-warnings nodejs-puzzle.js | |
const { promisify } = require('util'); | |
const sleep = promisify(setTimeout); | |
async function bar(n, s, t) { | |
setImmediate(() => process.stdout.write(s)); | |
await sleep(n); | |
return t; | |
} |
// $ npm install -g google-spreadsheet | |
const { GoogleSpreadsheet } = require('google-spreadsheet') | |
const API_KEY = '<YOUR-SUPER-SECRET-API-KEY>' // See: https://developers.google.com/sheets/api/guides/authorizing#APIKey | |
const SHEET_ID = '<target-sheet-id>' // spreadsheet key is the long id in the sheets URL | |
const doc = new GoogleSpreadsheet(SHEET_ID) | |
doc.useApiKey(API_KEY) |