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
| windows: https://api.whatsapp.com/send?phone=<number_with_country_code> | |
| linux: https://web.whatsapp.com/send?phone=<number_with_country_code> |
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
| ca-certificates | |
| curl | |
| gcc | |
| git | |
| grep | |
| gzip | |
| less | |
| make | |
| nano | |
| openssh |
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
| module.exports = { | |
| messages: { | |
| required: : "O campo '{field}' é obrigatório.", | |
| string: "O campo '{field}' deve ser uma string.", | |
| stringEmpty: "O campo '{field}' não deve estar vazio.", | |
| stringMin: "O comprimento do campo '{field}' deve ser maior ou igual a {expected} caracteres.", | |
| stringMax: "O comprimento do campo '{field}' deve ser menor ou igual a {expected} caracteres.", | |
| stringLength: "O comprimento do campo '{field}' deve ter {expected} caracteres.", | |
| stringPattern: "O campo '{field}' não corresponde ao padrão exigido.", |
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
| # https://github.com/jupyter/docker-stacks/blob/master/tensorflow-notebook/Dockerfile | |
| # Copyright (c) Jupyter Development Team. | |
| # Distributed under the terms of the Modified BSD License. | |
| ARG BASE_CONTAINER=jupyter/scipy-notebook | |
| FROM $BASE_CONTAINER | |
| LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>" | |
| # Install Tensorflow |
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
| englishphrase = input("Write some phrase to translate it from english to pig latin: ").lower().strip() | |
| englishwords = englishphrase.split() | |
| piglatinphrase = [] | |
| for engword in englishwords: | |
| pigword = [] | |
| if engword[0] in "aeiou": | |
| pigword = engword + "yay" |
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
| # python script using a for loop, checking how many vowels some word or phrase has | |
| word = input("Type some word to find out how many vowels and consonants it has: ").strip().lower() | |
| vowels = 0 | |
| consonants = 0 | |
| for letter in word: | |
| if letter.lower() in "aeiou": | |
| vowels = vowels + 1 | |
| elif (letter == " "): |
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
| """ Creating a dictionary """ | |
| students = {'Alice':25, 'Bob': 27, 'Charlie': 33, 'David': 21, 'Dan': 19, 'Emma': 19} | |
| """ Adding an entry """ | |
| students['Frank'] = 22 # {'Alice': 25, 'Bob': 27, 'Charlie': 33, 'David': 21, 'Dan': 19, 'Emma': 19, 'Frank': 22} | |
| """ Updating a value """ | |
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
| print("discover how healthy you are by checking your body mass index (bmi)") | |
| print() | |
| weight = input("type your weight (kg): ") | |
| height = input("type your height (m): ") | |
| bmi = float(weight) / (float(height) * float(height)) | |
| print("according to your bmi, {:.2f}, ".format(bmi), end="") |
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
| print("Hello".count("e")) # 1 | |
| print("Hello".count("el")) # 1 | |
| print("Peter".lower()) # peter | |
| print("Peter".upper()) # PETER | |
| print("peter parker".capitalize()) # Peter parker | |
| print("peter parker".title()) # Peter Parker | |
| print("peter parker".islower()) # True |