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 main(): | |
entradas = [] | |
# Loop para capturar entradas até o usuário digitar 'done' | |
while True: | |
entrada = input("Digite um valor (ou 'done' para terminar): ") | |
if entrada.lower() == 'done': # Para finalizar a captura | |
break | |
if entrada == '': # Captura de valores nulos | |
entradas.append(None) |
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
#!/bin/bash | |
sudo apt install -y unzip wget | |
wget https://github.com/LuanComputacao/gnome-kiosk/archive/refs/heads/main.zip | |
unzip main.zip | |
rm main.zip* | |
cd gnome-kiosk-main/ | |
sudo ./sal_gnome1.sh |
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
console.log('Gerar Números Aleatórios', generateRandomNumbers(6)); | |
/** | |
* Generate a random number between 1 and 60 without repetition | |
* @param {number} amount - Amount of numbers to be generated | |
* @returns {number[]} - Array of numbers | |
*/ | |
function generateRandomNumbers(amount) { | |
const numberBetween1And60 = () => Math.floor(Math.random() * 60) + 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
import turtle | |
turtle.speed(10) | |
turtle.bgcolor('black') | |
turtle.pensize(3) | |
def func(): | |
for _ in range(200): | |
turtle.right(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
@media (min-width: 1400px) { | |
.button-accordion { | |
height: 82%; } } | |
@media (min-width: 768px) { | |
.button-accordion { | |
height: 74%; } } | |
@media (min-width: 1400px) { | |
.button-accordion--right { |
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: | |
databse: | |
image: 'mongo' | |
container_name: 'mongo-dota' | |
environment: | |
- MONGO_INITDB_DATABASE=dota | |
- MONGO_INITDB_ROOT_USERNAME=teomewhy | |
- MONGO_INITDB_ROOT_PASSWORD=123 |
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 times = 600000 | |
let frase = "The quick red fox jumped over the lazy dog and ran away quickly"; | |
function biggestWord(frase){ | |
let biggest = ''; | |
let words = frase.split(' '); | |
for(let i=0; i < words.length; i++){ | |
if(words[i].length > biggest.length){ | |
biggest = words[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
// To execute | |
// gcc exemplo_de_troca_de_posicoes_em_c.c -o programinha && ./programinha | |
// | |
#include <stdio.h> | |
void trocaValor(int *vetorzinho, int primeiro, int segundo) // Definição da função "EsperaEnter" | |
{ | |
int temporario = vetorzinho[primeiro]; | |
vetorzinho[primeiro] = vetorzinho[segundo]; |
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
#!/bin/bash | |
#------------------------------------------------------------------------------- | |
# usuarios.sh | |
#------------------------------------------------------------------------------- | |
# | |
# Mostra os logins e nomes de usuários do sistema | |
# Obs: Lê dados do arquivo /etc/passwd | |
# | |
# Luan Roger, Março de 2016 |
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
# | |
# Oracle Java 7 Dockerfile | |
# | |
# https://github.com/dockerfile/java | |
# https://github.com/dockerfile/java/tree/master/oracle-java7 | |
# | |
# Pull base image. | |
FROM alpine as build |
NewerOlder