This file contains hidden or 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
| // | |
| // KeychainHelper.swift | |
| // VollMed | |
| // | |
| // Created by Giovanna Moeller on 28/08/23. | |
| // | |
| import Foundation | |
| import Security |
This file contains hidden or 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
| const axios = require('axios') | |
| const apiKey = '4c9fecf589d34837a7e92b5fc42b6062' | |
| const usuarios = [] | |
| const linhas = [] | |
| const todosOnibus = [] | |
| class Autenticacao { | |
| constructor() {} | |
| static login(email, senha) { |
This file contains hidden or 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
| class ListNode { | |
| constructor(value) { | |
| this.value = value | |
| this.next = null | |
| } | |
| } | |
| class LinkedList { | |
| head = null | |
| tail = null |
This file contains hidden or 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 linearSearch(array, target) { | |
| let index = -1 | |
| let count = 0 | |
| for(let i = 0; i < array.length; i++) { | |
| count++ | |
| if (array[i] == target) { | |
| console.log(`A busca linear levou ${count} etapas`) | |
| index = i | |
| } | |
| } |
This file contains hidden or 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 mesurePerformance(func, array) { | |
| const startTime = performance.now() | |
| func(array) | |
| const endTime = performance.now() | |
| console.log(`Tempo de execução: ${endTime - startTime} milisegundos`) | |
| } | |
| function func1(array) { | |
| return 1 + array[0] | |
| } |
This file contains hidden or 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
| // | |
| // main.cpp | |
| // Run Folder | |
| // | |
| // Created by Giovanna Moeller on 03/10/22. | |
| // | |
| #include <iostream> | |
| #include <vector> |
This file contains hidden or 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
| const student = { | |
| name: 'John', | |
| age: 16, | |
| averageGrade: 8 | |
| } | |
| function addOneToStudentGrade(student) { | |
| return { ...student, averageGrade: student.averageGrade + 1} | |
| } |
This file contains hidden or 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
| const student = { | |
| name: 'John', | |
| age: 16, | |
| averageGrade: 8 | |
| } | |
| function addOneToStudentGrade(student) { | |
| student.averageGrade += 1; | |
| return student; | |
| } |
This file contains hidden or 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
| class Person { | |
| constructor(name, height, weight, age) { | |
| this.name = name; | |
| this.height = height; | |
| this.weight = weight; | |
| this.age = age; | |
| } | |
| getAge() { | |
| return this.age; |
This file contains hidden or 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
| const array = [1, 2, 3, 4]; | |
| function getDoubledArray(array) { | |
| const arrayDoubled = []; | |
| for (let i = 0; i < array.length; i++) { | |
| const doubleValue = getDoubledValue(array[i]) | |
| arrayDoubled.push(doubleValue); | |
| } | |
| return arrayDoubled | |
| } |
NewerOlder