See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| # Requer PowerShell 5.1+ | |
| # Caminho para a pasta com os arquivos .mp4 | |
| $inputFolder = "F:\Downloads\musicas" | |
| $outputFolder = "F:\Downloads\musicas\M4A" | |
| $maxParallelJobs = 5 # Número máximo de conversões simultâneas | |
| # Criar pasta de saída se necessário | |
| if (-not (Test-Path -Path $outputFolder)) { | |
| New-Item -ItemType Directory -Path $outputFolder |
| # Based on Deiltel book | |
| import sys | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import seaborn as sns | |
| from random import randint | |
| roll_dice = lambda : randint(1,6) | |
| roll_times = int(sys.argv[1]) | |
| rolls = [roll_dice() for i in range(roll_times)] |
| { | |
| "cars": [ | |
| { | |
| "brand": "Fiat", | |
| "model": "Palio", | |
| "year": 2010, | |
| "engine": "1.0 Flex", | |
| "transmission": "Manual", | |
| "image_url": null, | |
| "description": "O Fiat Palio é um carro popular fabricado no Brasil desde 1996. Ele se destaca pelo bom custo-benefício e pela facilidade de manutenção." |
| #Steps | |
| # Limpa os arquivos gerados pelos testes anteriores | |
| # Executa os testes unitários com coleta de cobertura de código | |
| # Verifica se os testes foram executados com sucesso | |
| # Usa o resultado na ferramenta ReportGenerator | |
| # Exibe o html | |
| # Limpa os arquivos gerados pelos testes anteriores | |
| $testResultsPath = ".\PathTo\TestResults\*\" | |
| $codeCoverageDirPath = ".\PathTo\CodeCoverage\" |
| function caesarCipher(data, shift){ | |
| let encryptedData = ""; | |
| for (let idx in data) { | |
| debugger; | |
| const currentCharCode = data.charCodeAt(idx); | |
| const newCharCode = currentCharCode + shift; | |
| encryptedData += String.fromCharCode(newCharCode); | |
| } |
| import AppError from '@shared/erros/AppError'; | |
| import FakeProductsRepository from '../repositories/fakes/FakeProductsRepository'; | |
| import CreateProductService from './CreateProductService'; | |
| let fakeProductsRepository: FakeProductsRepository; | |
| let createProductService: CreateProductService; | |
| describe('CreateProductService', () => { | |
| beforeEach(() => { | |
| fakeProductsRepository = new FakeProductsRepository(); |
| const fs = require("fs"); | |
| const readline = require("readline"); | |
| const { logError } = require("../../utils/error"); | |
| const countWordsAndLines = (pathToFile) => { | |
| try { | |
| const readableStream = fs.createReadStream(pathToFile, { | |
| highWaterMark: 1, // 'limite' do buffer em bytes | |
| }); | |
| const rl = readline.createInterface(readableStream); |
| { | |
| "type": "postgres", | |
| "host": "localhost", | |
| "port": 5432, | |
| "username": "postgres", | |
| "password": "docker", | |
| "database": "gostack_gobarber", | |
| "migrations": ["./src/databse/migrations/*.ts"], | |
| "cli": { | |
| "migrationsDir": "./src/database/migrations" |