Skip to content

Commit

Permalink
Merge branch 'main' into fix/ajustando-definicao-polimorfismo
Browse files Browse the repository at this point in the history
  • Loading branch information
thenicolau authored Nov 22, 2024
2 parents ffc36d5 + 15eea1e commit e2999b1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/json-yaml-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Prettier

on:
pull_request:
branches:
- main
push:
branches:
- main
Expand All @@ -12,10 +14,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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/sort-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2
with:
ref: ${{ github.head_ref }}

- 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'
python-version: "3.12"

- name: Sort data files
if: steps.changed-data.outputs.any_changed == 'true'
Expand All @@ -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
2 changes: 1 addition & 1 deletion assets/css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion assets/data/cards_pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,10 @@
{
"title": "Recursão",
"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. 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",
Expand Down

0 comments on commit e2999b1

Please sign in to comment.