Skip to content

Instantly share code, notes, and snippets.

View TheSirion's full-sized avatar

Matheus Ribeiro TheSirion

View GitHub Profile
@TheSirion
TheSirion / Docker.md
Created October 6, 2025 03:03
Welcome file

Comandos básicos

  • docker ps - Mostra os containers rodando no momento
  • docker run - inicia um container
    • -it - parâmetro para iniciar um container interativamente
    • -d - a flag detach, 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 um Dockerfile
    • -t . - cria uma imagem com o nome dado.
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'/>";
<!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>
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;
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) {
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."""
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