Clonar um Repositório
$ git clone 'nome-do-repositório'
Verificar status
$ git status
| from lisapi import create_app | |
| socketio, app = create_app() | |
| # socketio.run(app) | |
| if __name__ == "__main__": | |
| socketio.run(app) |
| # give permissions to execute file: chmod +x install_cubic.sh | |
| # execute file ./install_cubic.sh | |
| echo Installing CUBIC..... | |
| sudo apt-add-repository ppa:cubic-wizard/release -y | |
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6494C6D6997C215E | |
| sudo apt update && sudo apt install cubic -y | |
| echo Finished! |
| somatorio = 0 | |
| rk = [] # rk | |
| nk = [8, 10, 16, 23, 33, 44, 56, 61] # nk fixo | |
| pnk = [] # pnk | |
| cdf = [] # cdf | |
| tr = [] # tr | |
| sk = [] # sk | |
| print("Preenchendo valores na coluna 1..") | |
| for i in range(1, 9): |
| # | |
| # Install the MYSQL driver | |
| # gem install mysql2 | |
| # | |
| # Ensure the MySQL gem is defined in your Gemfile | |
| # gem 'mysql2' | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
| from functools import reduce | |
| numeros = [1, 2, 3, 6] | |
| def soma(valor, valor2): | |
| return valor + valor2 | |
| resultado = reduce(soma, numeros) | |
| print(resultado) |
| nomes = ["marcos", "rosana", "ricardo", "silvia", "aline"] | |
| # usando map | |
| # def somente_nomes_com_a_letra_r(nome): | |
| # return nome if "r" in nome else "" | |
| # resultado = map(somente_nomes_com_a_letra_r, nomes) | |
| # for r in resultado: | |
| # print(r) |
| version: '3' | |
| services: | |
| flask: | |
| build: app/. | |
| container_name: controle-maquinas-flask | |
| links: | |
| - database | |
| restart: always | |
| ports: |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="$HOME/.oh-my-zsh" | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |