before | after |
---|---|
![]() |
![]() |
This file contains hidden or 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
import { createMock } from '@golevelup/ts-jest'; | |
import { CallHandler, ExecutionContext, RequestTimeoutException } from '@nestjs/common'; | |
import { throwError } from 'rxjs'; | |
import { marbles } from 'rxjs-marbles/jest'; | |
import { TimeoutInterceptor } from '@/api/interceptors/timeout.interceptor'; | |
describe('TimeoutInterceptor', () => { | |
const TIMEOUT = TimeoutInterceptor.TIMEOUT_RESPONSE_TIME_MS; | |
// |
before | after |
---|---|
![]() |
![]() |
![]() |
![]() |
relying on userContent.css
Go to https://github.com/settings/appearance and select Dark or Default to system.
This file contains hidden or 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
// go to Help > Toggle Developer Tools | |
const toogleInlineStyle = (el, styleProp, styleValue) => | |
!!el.style[styleProp] ? (el.style[styleProp]='') : (el.style[styleProp]=styleValue) | |
const blur = () => | |
document.querySelectorAll('[class="monaco-scrollable-element editor-scrollable vs-dark"]') | |
.forEach(el => toogleInlineStyle(el, 'filter', 'blur(3px)')) | |
This file contains hidden or 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
// $ 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) |
This file contains hidden or 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
// (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; | |
} |
This file contains hidden or 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
// 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) |
This file contains hidden or 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
Articles █████████████▋░░░░░░░ 65.1% | |
Videos ██████████████████▌░░ 88.3% | |
Books ████████▋░░░░░░░░░░░░ 41.4% | |
Learn React ████████████░░░░░░░░░ 57.1% | |
Learn TypeScript █████████████████████ 100.0% | |
GitHub ████████████████▊░░░░ 80.0% |
- (1) Quais os modelos de PC têm uma velocidade de pelos menos 3.00?
- (2) Quais os fabricantes fazem laptops com um disco rígido de pelo menos 100GB?
- (3) Encontre o número do modelo e preço de todos os produtos (de qualquer tipo) que são produzidos pelo fabricante
B
- (4) Encontre os números dos modelos de todas as impressoras a laser coloridas
- (5) Encontre os fabricantes que vendem laptops, mas não PCs
- (6) Encontrar os tamanhos de discos rígidos que ocorrem em dois ou mais PCs
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`