-
https://labs.play-with-docker.com/ - Site em que é possível utilizar os comandos do docker e testar as diversas funcionalidades que o Docker proporciona.
-
docker version - exibe a versão do docker.
-
docker run NOME_DA_IMAGEM - cria um container com a respectiva imagem passada como parâmetro.
-
docker run hello-world - Imagem de hello-world utilizada para um teste rápido e que simplesmente exibe uma mensagem no terminal e encerra o container
-
docker ps - lista todos os containers ativos no momento
-
docker ps -a - lista todos os containers ja criados inclusive os parados
-
docker rm NOME_DA_IMAGEM - remove um ou mais containers
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#Source: https://medium.com/@msalmon00/helpful-python-code-snippets-for-data-exploration-in-pandas-b7c5aed5ecb9 | |
#Code snippets for Pandas | |
import pandas as pd | |
‘’’ | |
Reading Files, Selecting Columns, and Summarizing | |
‘’’ | |
# reading in a file from local computer or directly from a URL | |
# various file formats that can be read in out wrote out | |
‘’’ | |
Format Type Data Description Reader Writer |
git log --format=format: --name-only | egrep -v '^$' | sort | uniq -c | sort -r > commits_per_file.txt
git shortlog -s -n
This file contains 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> | |
<head> | |
<style> | |
#square { | |
width: 100px; | |
height: 100px; | |
background: red; | |
position: relative; | |
} |
This file contains 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
#./easy_install.exe requests | |
import requests | |
jogos = requests.get('http://worldcup.sfg.io/matches').json() | |
for jogo in jogos: | |
if jogo['status'] in ('completed', 'in progress'): | |
print( | |
'['+jogo['status'].upper()+']', |
- usage of h:selectOneMenu
<h:selectOneMenu value="#{manageStudent.student.gender}">
<f:selectItem itemLabel="- Select Gender -" itemValue=""/>
<f:selectItems value="#{manageStudent.genders}"/>
</h:selectOneMenu>
- get HttpServletRequest and HttpServletResponse in managed bean
Verifique aqui se seu browser é compatível com determinadas propriedades do flexbox, já que novas propriedades vão aos poucos sendo implementadas
Flexbox é uma coleção de propriedades CSS usadas para alinhar conteúdo e distribuição de espaço.
Flexbox adiciona flex containers, flex items, e flex lines além de novas propriedades:
- Flex layout
This file contains 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
<?php | |
/** | |
* Exemplo de utilização: | |
* $regras = array( | |
* Validar::Required($situacao_id, 'Preencha o campo de Situação!'), | |
* Validar::Required($empregado_nome, 'Preencha o campo Nome!'), | |
* Validar::Required($empregado_cpf, 'Preencha o campo CPF!'), | |
* Validar::Required($empregado_base_id, 'Selecione uma base!'), | |
* Validar::Required($empregado_data_admissao, 'Insira a data de admissão do empregado!'), | |
* Validar::EmpregadoCodigoNaoExistente($empregado_codigo, 'O Código já pertence a um empregado!'), |