From effcbff422fae3486ac238f96f620c3f10b53bfb Mon Sep 17 00:00:00 2001 From: Laismariam Date: Sat, 15 Feb 2020 09:45:26 -0300 Subject: [PATCH 1/8] adicionando --- GIT/USERNAME/20181780011.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 GIT/USERNAME/20181780011.txt diff --git a/GIT/USERNAME/20181780011.txt b/GIT/USERNAME/20181780011.txt new file mode 100644 index 0000000..e69de29 From 2646d70cb53e2ab4288d9c2b58a820ae6cca476a Mon Sep 17 00:00:00 2001 From: Laismariam Date: Sat, 15 Feb 2020 10:01:38 -0300 Subject: [PATCH 2/8] adicionando --- GIT/USERNAME/20181780011.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/GIT/USERNAME/20181780011.txt b/GIT/USERNAME/20181780011.txt index e69de29..1062b6b 100644 --- a/GIT/USERNAME/20181780011.txt +++ b/GIT/USERNAME/20181780011.txt @@ -0,0 +1 @@ +Laís Maria Paz Nóbrega de Lima \ No newline at end of file From e662e2f111b8c4278c98db554dbbab334f06b7e8 Mon Sep 17 00:00:00 2001 From: laismariam Date: Fri, 21 Feb 2020 09:33:21 -0300 Subject: [PATCH 3/8] students --- {GIT/USERNAME => students/lais.maria}/20181780011.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {GIT/USERNAME => students/lais.maria}/20181780011.txt (100%) diff --git a/GIT/USERNAME/20181780011.txt b/students/lais.maria/20181780011.txt similarity index 100% rename from GIT/USERNAME/20181780011.txt rename to students/lais.maria/20181780011.txt From 6b6fc7089ab876c96a2dc299d9c64b17af7afd70 Mon Sep 17 00:00:00 2001 From: laismariam Date: Fri, 21 Feb 2020 10:29:15 -0300 Subject: [PATCH 4/8] IMC --- ecma/basic-hello/Lais.maria/hello.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ecma/basic-hello/Lais.maria/hello.js diff --git a/ecma/basic-hello/Lais.maria/hello.js b/ecma/basic-hello/Lais.maria/hello.js new file mode 100644 index 0000000..92756c2 --- /dev/null +++ b/ecma/basic-hello/Lais.maria/hello.js @@ -0,0 +1,13 @@ +const weight = 200; +const height = 1.5; +const bmi = weight / height **2; +let result; +if (bmi<18.5){ + result = "underweight" +}else if (bmi <24.9){ + result = 'normal weight' +} else if (bmi < 29.9){ + result = 'overweight' +} else { + result = 'obesity' +} \ No newline at end of file From 4308109aff20520c01923581ca9926df876328e0 Mon Sep 17 00:00:00 2001 From: julliete bezerra Date: Thu, 27 Feb 2020 12:17:18 -0300 Subject: [PATCH 5/8] eu --- ecma/basic-hello/Lais.maria/{hello.js => basic-bmi.js} | 7 ++++--- ecma/basic-hello/Lais.maria/basic-helo.js | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) rename ecma/basic-hello/Lais.maria/{hello.js => basic-bmi.js} (78%) create mode 100644 ecma/basic-hello/Lais.maria/basic-helo.js diff --git a/ecma/basic-hello/Lais.maria/hello.js b/ecma/basic-hello/Lais.maria/basic-bmi.js similarity index 78% rename from ecma/basic-hello/Lais.maria/hello.js rename to ecma/basic-hello/Lais.maria/basic-bmi.js index 92756c2..236b415 100644 --- a/ecma/basic-hello/Lais.maria/hello.js +++ b/ecma/basic-hello/Lais.maria/basic-bmi.js @@ -2,12 +2,13 @@ const weight = 200; const height = 1.5; const bmi = weight / height **2; let result; -if (bmi<18.5){ +if (bmi <= 18.5){ result = "underweight" -}else if (bmi <24.9){ +}else if (bmi < 24.9){ result = 'normal weight' } else if (bmi < 29.9){ result = 'overweight' } else { result = 'obesity' -} \ No newline at end of file +} +console.log(result) \ No newline at end of file diff --git a/ecma/basic-hello/Lais.maria/basic-helo.js b/ecma/basic-hello/Lais.maria/basic-helo.js new file mode 100644 index 0000000..9df4b1f --- /dev/null +++ b/ecma/basic-hello/Lais.maria/basic-helo.js @@ -0,0 +1,2 @@ +const name = 'Luiz' +console.log('Hello, Luiz!') From 2844155caca510c7bfa5885b2d40032ebaebfef1 Mon Sep 17 00:00:00 2001 From: laismariam Date: Fri, 28 Feb 2020 10:17:57 -0300 Subject: [PATCH 6/8] exercicios --- .../lais.maria/basic-bmi.js} | 7 ++++--- .../lais.maria/basic-harmonic-series.js | 7 +++++++ ecma/basic-hello/lais.maria/basic-hello.js | 2 ++ ecma/basic-irrf/lais.maria/basic-irrf.js | 19 +++++++++++++++++++ .../lais.maria/basic-number-serie.js | 15 +++++++++++++++ ecma/function-sum/lais.maria/function-sum.js | 3 +++ 6 files changed, 50 insertions(+), 3 deletions(-) rename ecma/{basic-hello/Lais.maria/hello.js => basic-bmi/lais.maria/basic-bmi.js} (78%) create mode 100644 ecma/basic-harmonic-series/lais.maria/basic-harmonic-series.js create mode 100644 ecma/basic-hello/lais.maria/basic-hello.js create mode 100644 ecma/basic-irrf/lais.maria/basic-irrf.js create mode 100644 ecma/basic-number-series/lais.maria/basic-number-serie.js create mode 100644 ecma/function-sum/lais.maria/function-sum.js diff --git a/ecma/basic-hello/Lais.maria/hello.js b/ecma/basic-bmi/lais.maria/basic-bmi.js similarity index 78% rename from ecma/basic-hello/Lais.maria/hello.js rename to ecma/basic-bmi/lais.maria/basic-bmi.js index 92756c2..5eb59bc 100644 --- a/ecma/basic-hello/Lais.maria/hello.js +++ b/ecma/basic-bmi/lais.maria/basic-bmi.js @@ -2,12 +2,13 @@ const weight = 200; const height = 1.5; const bmi = weight / height **2; let result; -if (bmi<18.5){ +if (bmi < 18.5){ result = "underweight" -}else if (bmi <24.9){ +}else if (bmi < 24.9){ result = 'normal weight' } else if (bmi < 29.9){ result = 'overweight' } else { result = 'obesity' -} \ No newline at end of file +} +console.log(result) \ No newline at end of file diff --git a/ecma/basic-harmonic-series/lais.maria/basic-harmonic-series.js b/ecma/basic-harmonic-series/lais.maria/basic-harmonic-series.js new file mode 100644 index 0000000..30360b9 --- /dev/null +++ b/ecma/basic-harmonic-series/lais.maria/basic-harmonic-series.js @@ -0,0 +1,7 @@ +const tam = 10 +let soma = 0 + +for (n = 1; n <= 10; n++){ + soma+= 1/n; +} +console.log(soma) \ No newline at end of file diff --git a/ecma/basic-hello/lais.maria/basic-hello.js b/ecma/basic-hello/lais.maria/basic-hello.js new file mode 100644 index 0000000..248c0f2 --- /dev/null +++ b/ecma/basic-hello/lais.maria/basic-hello.js @@ -0,0 +1,2 @@ +const nome = 'Luiz' +console.log("Hello!" + nome) diff --git a/ecma/basic-irrf/lais.maria/basic-irrf.js b/ecma/basic-irrf/lais.maria/basic-irrf.js new file mode 100644 index 0000000..2a9b56a --- /dev/null +++ b/ecma/basic-irrf/lais.maria/basic-irrf.js @@ -0,0 +1,19 @@ +let imp; +let salario = 3500.00; + +if (salario <= 1903.98){ + imp = 0; +} +else if (salario < 2826.65){ + imp = (salario * 7.5)/100 - 142.80; +} +else if (salario < 3751.05){ + imp = (salario * 15.0)/100 - 354.80; +} +else if (salario < 4664.68){ + imp = (salario * 22.5)/100 - 636.13; +} +else{ + imp = (salario * 27.5)/100 - 869.36; +} +console.log(imp) \ No newline at end of file diff --git a/ecma/basic-number-series/lais.maria/basic-number-serie.js b/ecma/basic-number-series/lais.maria/basic-number-serie.js new file mode 100644 index 0000000..e0e2616 --- /dev/null +++ b/ecma/basic-number-series/lais.maria/basic-number-serie.js @@ -0,0 +1,15 @@ +let result = ''; + +for (let flag = 0; flag < 100; flag++){ + if (flag < 10){ + result+='0'+flag; + }else{ + result+=flag; + } + if (flag % 10 === 9){ + result += '\n' + }else{ + result+= ' '; + } +} +console.log(result) \ No newline at end of file diff --git a/ecma/function-sum/lais.maria/function-sum.js b/ecma/function-sum/lais.maria/function-sum.js new file mode 100644 index 0000000..a209ae5 --- /dev/null +++ b/ecma/function-sum/lais.maria/function-sum.js @@ -0,0 +1,3 @@ +function soma(n1, n2){ + some +} \ No newline at end of file From 51fac5e6f4ba10b2fd0f84202b43cf5edf3e450e Mon Sep 17 00:00:00 2001 From: laismariam Date: Fri, 13 Mar 2020 09:49:46 -0300 Subject: [PATCH 7/8] arquivo app.js --- web/node-hello-simple/lais.maria/app.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 web/node-hello-simple/lais.maria/app.js diff --git a/web/node-hello-simple/lais.maria/app.js b/web/node-hello-simple/lais.maria/app.js new file mode 100644 index 0000000..862f2ef --- /dev/null +++ b/web/node-hello-simple/lais.maria/app.js @@ -0,0 +1,15 @@ +const http = require("http") + +const hostname = "127.0.0.1"; +const port = 3000; + +const server = http.createServer((req, res) => { + res.statusCode = 200; + res.setHeader('Content-Type', 'text/plain'); + res.end('Hello World'); + }); + + server.listen(port, hostname, () => { + console.log(`Server running at http://${hostname}:${port}/`); + }); + \ No newline at end of file From 1a662c00c3f73136c93e8065d1f880e675219234 Mon Sep 17 00:00:00 2001 From: laismariam Date: Fri, 13 Mar 2020 10:28:41 -0300 Subject: [PATCH 8/8] atividade node languagens --- web/node-hello-lang/lais.maria/app.js | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 web/node-hello-lang/lais.maria/app.js diff --git a/web/node-hello-lang/lais.maria/app.js b/web/node-hello-lang/lais.maria/app.js new file mode 100644 index 0000000..90e1d62 --- /dev/null +++ b/web/node-hello-lang/lais.maria/app.js @@ -0,0 +1,28 @@ +const http = require("http"); +const url = require("url"); + +const hostname = "127.0.0.1"; +const port = 3000; + +const server = http.createServer((req, res) => { + res.statusCode = 200; + res.setHeader("Content-Type", "text/plai; charset=utf-8"); + //res.setEncoding('UTF-8'); + + // if (req.url === "pt") { + // res.end("Olá mundo!"); + // } else if (req.url === "en") { + // res.end("Hello world!"); + // } + + const hello = { + "/pt": "Olá mundo!", + "/en": "Hello world!" + }; + + res.end(hello[req.url]); +}); + +server.listen(port, hostname, () => { + console.log(`Server running at http://${hostname}:${port}/`); +});