One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
class MyModelAdd(CreateView): | |
model = MyModel | |
def get_form(self): | |
type_form = self.request.GET.get('type') | |
if type_form == 'pf': | |
self.form_class = PFForm | |
else: | |
self.form_class = PJForm | |
return super(MyModelAdd, self).get_form() |
#!/bin/bash | |
loadkeys br-abnt2 | |
wifi-menu | |
pacman -Sy reflector | |
reflector --verbose --latest 200 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist | |
mkfs.fat -F32 /dev/sda1 | |
mkswap /dev/sda2 |
#!/bin/bash | |
# nano /etc/locale.gen | |
sed -i '/en_US.UTF-8 UTF-8/s/^#//g' /etc/locale.gen | |
locale-gen | |
echo 'LANG=en_US.UTF-8' >> /etc/locale.conf | |
echo 'KEYMAP=br-abnt2' /etc/vconsole.conf | |
echo 'archlinux' >> /etc/hostname |
base-devel | |
pacman-contrib | |
bash-completion | |
linux-zen | |
linux-zen-headers | |
xorg-server | |
# xorg-xinit | |
ttf-dejavu |
sudo woeusb --target-filesystem NTFS --device Win10_1809Oct_English_x64.iso /dev/sdb |
git log --oneline | |
git rebase --interactive commitasermodificado | |
git commit --all --amend --no-edit | |
git rebase --continue |
package com.ufc.br.controller; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.GetMapping; | |
import org.springframework.web.bind.annotation.PathVariable; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.servlet.ModelAndView; | |
import com.ufc.br.exception.SemPratosSuficienteException; |
Passo a passo para te ajudar a montar o seu ambiente completo de desenvolvimento Python, utilizando como base o Arch Linux, Ubuntu 18.04.x e derivados.
Primeiro, sincronize os repositórios e atualize o sistema utilizando o seguinte comando:
sudo pacman -Syyu
FROM python:3.7-slim | |
ENV PYTHONDONTWRITEBYTECODE 1 | |
ENV PYTHONUNBUFFERED 1 | |
WORKDIR /code | |
RUN pip install pipenv | |
COPY Pipfile Pipfile.lock /code/ | |
RUN pipenv install --system |