See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
{ | |
"categories": [ | |
{ | |
"name": "Movies", | |
"videos": [ | |
{ | |
"description": "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources": [ | |
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" | |
], |
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
- **100% — FF** | |
- 99% — FC | |
- 98% — FA | |
- 97% — F7 | |
- 96% — F5 | |
- 95% — F2 | |
- 94% — F0 | |
- 93% — ED | |
- 92% — EB | |
- 91% — E8 |
const { default: axios } = require('axios'); | |
const qrcode = require('qrcode-terminal'); | |
const { Client, MessageMedia } = require('whatsapp-web.js'); | |
const client = new Client(); | |
client.on('qr', (qr) => { | |
// Generate and scan this code with your phone | |
qrcode.generate(qr, {small: true}); | |
}); |
type Reverse<A> = | |
`${A}` extends `${infer AH}${infer AT}` | |
? `${Reverse<AT>}${AH}` : A | |
type Digs = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
type DigsNext<I = Digs, R = {}> = | |
I extends [infer Head, infer Next, ...infer Tail] | |
? DigsNext<[Next, ...Tail], R & Record<Head, Next>> |
interface HTMLElement { | |
setStyle(newStyles: Partial<CSSStyleDeclaration>): void; | |
} | |
HTMLElement.prototype.setStyle = function (newStyles) { | |
for (let style in newStyles) { | |
this.style[style] = newStyles[style]! | |
} | |
} |
type Numeros = ['zero', 'um', 'dois', 'tres', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove']; | |
type Dezenas = ['','','vinte', 'trinta', 'quarenta', 'cinquenta', 'sessenta', 'setenta', 'oitenta', 'noventa']; | |
type Cem = ['cem']; | |
type Centenas = ['cento', 'duzentos', 'trezentos', 'quatrocentos', 'quinhentos', 'seiscentos', 'setecentos', 'oitocentos', 'novecentos']; | |
type GetWords<Str extends string, Curr extends string = ''> = | |
Str extends `${infer L}${infer R}` | |
? L extends ' ' | |
? Curr | |
: GetWords<R, `${Curr}${L}`> |
// tamanho do tabuleiro ao todo e quantas colunas tem em uma fileira | |
const boardSize = 500; | |
const holesPerRow = 50; | |
// tempo em ms de delay do intervalo do game loop | |
const loopDelay = 25; | |
// emojis, só pra deixar bonitinho kkkk | |
const emojis = { | |
blank: '🟫', |
const pombify = (phrase) => { | |
return phrase | |
.split(' ') | |
.map((word) => { | |
const wordLetters = word.split('') | |
return wordLetters | |
.map((letter, index) => { | |
const charCode = letter.charCodeAt(0); | |
const binary = charCode | |
.toString(2) |