From f04cdde124e1a3fd8eeede3964cffcc5feda3a44 Mon Sep 17 00:00:00 2001 From: Gustavo Nicolau De Moura Pires Date: Wed, 23 Oct 2024 23:23:26 -0300 Subject: [PATCH 1/5] feat: implementando exemplo de recursao --- assets/data/cards_pt-br.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/data/cards_pt-br.json b/assets/data/cards_pt-br.json index 90f579dc..078c639e 100644 --- a/assets/data/cards_pt-br.json +++ b/assets/data/cards_pt-br.json @@ -922,7 +922,7 @@ "tags": [ "Conceito" ], - "description": "Recursão é um método/função que chama a si mesmo para resolver um problema." + "description": "Recursão é um método/função que chama a si mesmo para resolver um problema. Temos de exemplo o cálculo fatorial onde um número vai multiplicando seu número anterior até chegar a 1. Exemplo 5! seria 5 x 4 x 3 x 2 x 1 = 120." }, { "title": "Rede Generativa Adversarial", From 6cab897efe3150193200c286e7ee45f545d79318 Mon Sep 17 00:00:00 2001 From: Gustavo Nicolau Date: Thu, 24 Oct 2024 22:40:52 -0300 Subject: [PATCH 2/5] feat: adicionando exemplo em recursao e incrementando mais textos --- assets/css/style.css.map | 2 +- assets/data/cards_pt-br.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/css/style.css.map b/assets/css/style.css.map index 2e4b0afb..ddd91f38 100644 --- a/assets/css/style.css.map +++ b/assets/css/style.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../sass/style.sass","../sass/cookies.sass","../sass/dark_theme.sass","../sass/light_theme.sass","../sass/_variables.sass"],"names":[],"mappings":"AAAQ;ACAR;EACI;EACA;EACA;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;;AAER;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;;AAER;EACI;IACI;IACA;;;AChDR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAII;EACI;;AAEJ;EACI;;AAEJ;EACI;;;ACzBZ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAII;EACI;;AAEJ;EACI;;AAEJ;EACI;;;AHnBZ;EACI;EACA;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;;AAER;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;;AAER;EACI;;;AAEJ;EACI;EACA,YIvCU;;;AJyCd;EACI,YIhDO;;;AJkDX;EACI;;;AAEJ;EACI;EACA;EACA;EACA;;;AAEJ;EACI;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA,MIhFD;;AJkFH;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;;AAEhB;EACI;EACA;EACA;EACA;EACA;;;AAEJ;EACI;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;;AAER;EACI;EACA;EACA;EACA;EACA;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAGI;EACI,kBIjIE;EJkIF;EACA;EACA;;AACJ;EACI;EACA;EACA;EACA,OI3IE;;AJ6IN;EACI;;AACJ;EACI;EACA,OI9IE;;;AJgJd;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;;AAEJ;EACI;EACA;;AAEJ;EACI;EACA;EACA;;AAEJ;EACI;;AAEJ;EACI;EACA;EACA;EACA,OI/LA;EJgMA,kBIrLM;EJsLN;EACA;;;AAER;EACI;EACA,MI3LU;;AJ6LV;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACI;;;AAER;EACI;IACI;;EAEJ;IACI;;EAEJ;IACI;;EAEJ;IACI;;EAEJ;IACI;;EAEJ;IACI;;;AAER;EACI;IACI;IACA;;EACJ;IACI;;EAEJ;IACI;;;AAER;EACI;IACI;;;AAER;EACI;IACI;IACA;IACA;;;AAER;EACI,kBIjPU;EJkPV,OI7PI;EJ8PJ;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;;AAIA;EACI;;AAEJ;EACI;;AAEJ;EACI","file":"style.css"} +{"version":3,"sourceRoot":"","sources":["../sass/style.sass","../sass/cookies.sass","../sass/dark_theme.sass","../sass/light_theme.sass","../sass/_variables.sass"],"names":[],"mappings":"AAAQ;ACAR;EACI;EACA;EACA;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;;AAER;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;;AAER;EACI;IACI;IACA;;;AChDR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAII;EACI;;AAEJ;EACI;;AAEJ;EACI;;;ACzBZ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAII;EACI;;AAEJ;EACI;;AAEJ;EACI;;;AHnBZ;EACI;EACA;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;;AAER;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;;AAER;EACI;;;AAEJ;EACI;EACA,YIvCU;;;AJyCd;EACI,YIhDO;;;AJkDX;EACI;;;AAEJ;EACI;EACA;EACA;EACA;;;AAEJ;EACI;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA,MIhFD;;AJkFH;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;;AAEhB;EACI;EACA;EACA;EACA;EACA;;;AAEJ;EACI;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;;AAER;EACI;EACA;EACA;EACA;EACA;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAGI;EACI,kBIjIE;EJkIF;EACA;EACA;;AACJ;EACI;EACA;EACA;EACA,OI3IE;;AJ6IN;EACI;;AACJ;EACI;EACA,OI9IE;;;AJgJd;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;;AAEJ;EACI;EACA;;AAEJ;EACI;EACA;EACA;;AAEJ;EACI;;AAEJ;EACI;EACA;EACA;EACA,OI/LA;EJgMA,kBIrLM;EJsLN;EACA;;;AAER;EACI;EACA,MI3LU;;AJ6LV;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACI;;;AAER;EACI;IACI;;EAEJ;IACI;;EAEJ;IACI;;EAEJ;IACI;;EAEJ;IACI;;EAEJ;IACI;;;AAER;EACI;IACI;IACA;;EACJ;IACI;;EAEJ;IACI;;;AAER;EACI;IACI;;;AAER;EACI;IACI;IACA;IACA;;;AAER;EACI,kBIjPU;EJkPV,OI7PI;EJ8PJ;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;;AAIA;EACI;;AAEJ;EACI;;AAEJ;EACI","file":"style.css"} \ No newline at end of file diff --git a/assets/data/cards_pt-br.json b/assets/data/cards_pt-br.json index 078c639e..1c1aad18 100644 --- a/assets/data/cards_pt-br.json +++ b/assets/data/cards_pt-br.json @@ -922,7 +922,10 @@ "tags": [ "Conceito" ], - "description": "Recursão é um método/função que chama a si mesmo para resolver um problema. Temos de exemplo o cálculo fatorial onde um número vai multiplicando seu número anterior até chegar a 1. Exemplo 5! seria 5 x 4 x 3 x 2 x 1 = 120." + "description": "Recursão é um método/função que chama a si mesmo para resolver um problema. Temos de exemplo o cálculo fatorial onde um número vai multiplicando seu número anterior até chegar a 1. Aqui temos um exemplo utilizando javascript, vamos imaginar que chamamos está função com o número 5, neste caso a primeira vez que a função for chamada irá chamar 5 x fatorial(5 - 1), depois a função será chamada novamente porém desta vez com o número 4 onde será 5 x ( 4 x fatorial(4-1) ) e irá seguir assim até chegar ao número 1 onde não haverá mais nenhuma chamada de função e será feito este cálculo 5 x 4 x 3 x 2 x 1.", + "content": { + "code": "function fatorial(numero) { if(numero == 0 || numero == 1) { return 1 } return numero * fatorial(numero - 1) }" + } }, { "title": "Rede Generativa Adversarial", From 3a8ee24bad2ca9e504b12b4ae04a0412f3b3975f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ara=C3=BAjo?= Date: Mon, 18 Nov 2024 12:02:11 -0300 Subject: [PATCH 3/5] Bumping checkout version to 4.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: George Araújo --- .github/workflows/prettier.yml | 3 +-- .github/workflows/sort-data.yml | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index cad42902..d136e03e 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -12,10 +12,9 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 with: ref: ${{ github.head_ref }} - fetch-depth: 0 - name: Run Prettier uses: AbdulRehman-1/pr-prettier@initial diff --git a/.github/workflows/sort-data.yml b/.github/workflows/sort-data.yml index f2734d2c..2b050eb2 100644 --- a/.github/workflows/sort-data.yml +++ b/.github/workflows/sort-data.yml @@ -21,7 +21,7 @@ jobs: contents: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.2.2 with: ref: ${{ github.head_ref }} @@ -35,7 +35,7 @@ jobs: if: steps.changed-data.outputs.any_changed == 'true' uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: "3.12" - name: Sort data files if: steps.changed-data.outputs.any_changed == 'true' From 4e722a4c7bc5ddd2a67c9ed5849acd7ac1664e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ara=C3=BAjo?= Date: Mon, 18 Nov 2024 12:05:43 -0300 Subject: [PATCH 4/5] Updated other actions entries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: George Araújo --- .github/workflows/prettier.yml | 2 ++ .github/workflows/sort-data.yml | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index d136e03e..2fcd8b72 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -2,6 +2,8 @@ name: Prettier on: pull_request: + branches: + - main push: branches: - main diff --git a/.github/workflows/sort-data.yml b/.github/workflows/sort-data.yml index 2b050eb2..415f02f3 100644 --- a/.github/workflows/sort-data.yml +++ b/.github/workflows/sort-data.yml @@ -27,13 +27,13 @@ jobs: - name: Get changed data files id: changed-data - uses: tj-actions/changed-files@v45 + uses: tj-actions/changed-files@v45.0.4 with: files: assets/data/**.json - name: Setup Python if: steps.changed-data.outputs.any_changed == 'true' - uses: actions/setup-python@v5 + uses: actions/setup-python@v5.3.0 with: python-version: "3.12" @@ -48,7 +48,7 @@ jobs: done # commit all changed files back to the repository - - uses: stefanzweifel/git-auto-commit-action@v5 + - uses: stefanzweifel/git-auto-commit-action@v5.0.1 if: steps.changed-data.outputs.any_changed == 'true' with: commit_message: Sort data files From fe443e24f600a3d0f1269984e2cbdeaff3944444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ara=C3=BAjo?= Date: Mon, 18 Nov 2024 12:10:20 -0300 Subject: [PATCH 5/5] Updated checkout on json-yaml-validate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: George Araújo --- .github/workflows/json-yaml-validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/json-yaml-validate.yml b/.github/workflows/json-yaml-validate.yml index 9180bd31..4c05d1af 100644 --- a/.github/workflows/json-yaml-validate.yml +++ b/.github/workflows/json-yaml-validate.yml @@ -18,7 +18,7 @@ jobs: json-yaml-validate: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.2.2 - name: json-yaml-validate id: json-yaml-validate