Nosso canal no telegram: Vagas 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
// @ts-check | |
// | |
// The line above enables type checking for this file. Various IDEs interpret | |
// the @ts-check directive. It will give you helpful autocompletion when | |
// implementing this exercise. | |
const WEEK_DAYS = 7 | |
/** | |
* Calculates the total bird count. |
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
// @ts-check | |
// | |
// The line above enables type checking for this file. Various IDEs interpret | |
// the @ts-check directive. It will give you helpful autocompletion when | |
// implementing this exercise. | |
/** | |
* Determines whether or not you need a licence to operate a certain kind of vehicle. | |
* | |
* @param {string} kind |
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
// @ts-check | |
/** | |
* Retrieve card from cards array at the 0-based position | |
* | |
* @param {number[]} cards | |
* @param {number} position | |
* | |
* @returns {number} the card | |
*/ |
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
// @ts-check | |
// | |
// ☝🏽 The line above enables type checking for this file. Various IDEs interpret | |
// the @ts-check directive. It will give you helpful autocompletion on the web | |
// and supported IDEs when implementing this exercise. You don't need to | |
// understand types, JSDoc, or TypeScript in order to complete this JavaScript | |
// exercise, and can completely ignore this comment block and directive. | |
// | |
// 👋🏽 Hi again! | |
// |
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
git diff --name-only 1ff0f508a HEAD > foo.txt |
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
function defaultDirtyForForm(form) { | |
return Object.keys(form).reduce((acc, key) => { | |
acc[key] = false; | |
return acc; | |
}, {}); | |
} | |
const WithForm = defaultForm => { | |
const fields = Object.keys(defaultForm()); |
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
<template> | |
<div class="card"> | |
<div class="card-body"> | |
<h4 class="card-title"> | |
{{ isEditing ? "Editando tag" : "Criando Tag" }} | |
</h4> | |
<form @submit.prevent="onSubmit" class="forms-sample"> | |
<b-form-group v-if="entity" :disabled="true" label="ID"> | |
<b-form-input :value="entity.id"></b-form-input> |
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
foo |
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
foo |