Skip to content

Instantly share code, notes, and snippets.

@programadorabordo
programadorabordo / vue3-aula2.html
Created December 15, 2020 23:08
HTML utilizado na maratona Vue 3 aula 2 https://youtu.be/jP97Un5Hs1A
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vue 3 template | Programador a Bordo</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
</head>
<body>
<div class="container">
@programadorabordo
programadorabordo / removendo-ifs.js
Created September 15, 2020 18:20
Código gerado na aula do vídeo https://youtu.be/6EqDVhO5qzQ
// purposeless condition
function eDeMaior (idade, sexo) {
// if (idade >= 18 && sexo === 'M') {
// return true;
// } else {
// return false;
// }
return (idade >= 18 && sexo === 'M');
@programadorabordo
programadorabordo / codigo-previsivel.html
Created August 26, 2020 19:24
Código criado durante a aula sobre código previsível https://youtu.be/a6TEbMTz5no
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Código previsível | JS Day | Programador a Bordo</title>
</head>
<body>
<script>
// every
@programadorabordo
programadorabordo / async-await.html
Created August 25, 2020 02:03
Código da aula ao vivo sobre async await https://youtu.be/mTLg2qd9r0M
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Async Await | JS Day | Programador a Bordo</title>
</head>
<body>
<script>
/* request.get('http://site.com', function(resultado) {
@programadorabordo
programadorabordo / pointfree.html
Last active August 25, 2020 02:04
Código da aula ao vivo sobre pointfree https://youtu.be/hCfiTBwhBqo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pointfree Style | JS Day | Programador a Bordo</title>
</head>
<body>
<script>
// Formas de criar funções da forma tradicional
@programadorabordo
programadorabordo / reduce-everywhere.js
Created July 30, 2020 15:33
Todo código gerado na aula ao vivo do quadro JS Day https://youtu.be/BBFvqb6Y43s
const numeros = [5, 12, 30, 10, 99, 4];
/*
Soma total
*/
const valorSomaTotal = numeros.reduce(function (acumulador, valorAtual) {
return acumulador + valorAtual;
}, 0);
console.log('valorSomaTotal', valorSomaTotal);
@programadorabordo
programadorabordo / locadora-js-raiz.html
Created July 4, 2020 18:12
Código feito em JavaScript puro da Semana JavaScript Raiz - Coloquei todo o JS dentro do index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Locadora Raiz | Semana JavaScript Raiz | Programador a A Bordo</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
</head>
<body>
<div class="container-fluid">
@programadorabordo
programadorabordo / locadora-react-raiz.html
Created July 4, 2020 17:49
Código feito em React da Semana JavaScript Raiz - Coloquei todo o JS dentro do index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Locadora Raiz | Semana JavaScript Raiz | Programador a A Bordo</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
</head>
<body>
<div class="container-fluid" id="app">
@programadorabordo
programadorabordo / locadora-vue-raiz.html
Last active July 9, 2020 14:18
Código feito em Vue da Semana JavaScript Raiz - coloquei todo o JS do Vue dentro do próprio index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Locadora Vue Raiz | JS Raiz | Programador a Bordo</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
</head>
<body>