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
// Construct Single Node | |
class Node { | |
constructor(data, next = null) { | |
this.data = data; | |
this.next = next; | |
} | |
} | |
// Create/Get/Remove Nodes From Linked List | |
class LinkedList { |
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
version: "3" | |
services: | |
database: | |
image: postgres:9.6 | |
container_name: "postgres-db" | |
environment: | |
- POSTGRES_DB=db_name | |
- POSTGRES_USER=db_user | |
- POSTGRES_PASSWORD=db_password | |
- POSTGRES_HOST_AUTH_METHOD=trust |
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
let hash = ""; | |
let tam = 8; | |
for(let x=0;x<tam;x++){ | |
for(let y=0;y<tam;y++){ | |
if((x+y)%2==0){ | |
hash += "#"; | |
}else{ | |
hash+= " "; |
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 buscarPokemon(id) { | |
//Nossa função irá receber um ID que corresponde a qualquer Pokemon | |
const endpoint = "https://cors.now.sh/https://pokeapi.co/api/v2/pokemon/"; | |
const URL = endpoint + id; | |
//Nossa constante "URL" será a união do endPoint da API + o ID do Pokemon | |
//EX: https://cors.now.sh/https://pokeapi.co/api/v2/pokemon/1" ou | |
// https://cors.now.sh/https://pokeapi.co/api/v2/pokemon/pikachu" |