docker ps
- Mostra os containers rodando no momentodocker run
- inicia um container-it
- parâmetro para iniciar um container interativamente-d
- a flagdetach
, que permite que o container rode desconectado do terminal.--rm
- parâmetro para deletar um container assim que ele terminar a execução.--network <network name>
- conecta o container a uma rede.
docker build
- constrói uma imagem a partir de umDockerfile
-t .
- cria uma imagem com o nome dado.
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 todoList = document.getElementById('To-Dos'); | |
let addButton = document.getElementById('add'); | |
let input = document.getElementById('newTodo'); | |
let createTodo = function(todo) { | |
let todoItem = document.createElement('li'); | |
let label = document.createElement('label'); | |
let button = document.createElement('button'); | |
todo.innerHTML = "<input type='/checkbox'/>"; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>To-Do List</title> | |
<link rel="stylesheet" href="styles.css"> | |
<script src="scripts.js"></script> | |
</head> |
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
package com.sirion.comicoftheday; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.widget.ImageView; | |
import android.widget.TextView; | |
import com.android.volley.Request; |
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
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner s = new Scanner(System.in); | |
int busHeight = s.nextInt(); | |
int bridges = s.nextInt(); | |
for (int i = 0; i <= bridges; i++) { | |
if (s.nextInt() <= busHeight) { |
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
import a1 | |
import unittest | |
class TestNumBuses(unittest.TestCase): | |
""" Test class for function a1.num_buses. """ | |
# Add your test methods for a1.num_buses here. | |
def test_num_buses_zero(self): | |
"""Tests num_buses for 0 persons.""" |
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
def num_buses(n): | |
""" (int) -> int | |
Precondition: n >= 0 | |
Return the minimum number of buses required to transport n people. | |
Each bus can hold 50 people. | |
>>> num_buses(75) | |
2 |