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
| docker ps -a # to show all containers | |
| docker stop $(docker ps -a -q) # to stop all containers | |
| docker rm $(docker ps -a -q) # to remove all containers | |
| docker rmi $(docker images -a -q) # to remove all images | |
| docker volume rm $(docker volume ls -q) # to remove all volumes |
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
| type Message = { title: string, content: string }; | |
| enum Destinos { | |
| ETS = 5000, | |
| SUMARE = 10000, | |
| SALA_DO_LADO = 1500 | |
| } | |
| function enviarPombo(mensagem: Message, destino: Destinos): Promise<Message> { | |
| return new Promise((resolve, reject) => { |
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
| # start powershell -WorkingDirectory E:\Users\hidek\Desktop\ws | |
| wt -d E:\Users\hidek\Desktop\ws |
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 Browser | |
| import Html exposing (Html, button, div, text) | |
| import Html.Events exposing (onClick) | |
| -- MAIN | |
| main = | |
| Browser.sandbox { init = init, update = update, view = view } |
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
| #include <stdio.h> | |
| int main() { | |
| char string[500000]; | |
| int i = 0; | |
| printf("Enter a string: "); | |
| scanf("%s", string); | |
| printf("String: %s", string); | |
| char string2 [strlen(string)]; | |
| for (i=0; i<strlen(string); 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
| from os import system | |
| import sys | |
| from time import sleep | |
| import keyboard | |
| def createGrid(width, height): | |
| grid = list() | |
| for row in range(height): | |
| row_val = list() | |
| for col in range(width): |