-
Reference other issues and commits in body.
.end
class VinculoGeral(models.Model): | |
'''Essa classe será criada pelo Django. | |
Ela não tem nenhuma validação. | |
''' | |
tipo_vinculo = models.ForeignKey('TipoVinculoProfissional') | |
profissional = models.ForeignKey('Profissional') | |
data_inicio = models.DateField() | |
data_fim = models.DateField() |
Reference other issues and commits in body.
.end
"""IPython startup script to detect and inject VIRTUAL_ENV's site-packages dirs. | |
IPython can detect virtualenv's path and injects it's site-packages dirs into sys.path. | |
But it can go wrong if IPython's python version differs from VIRTUAL_ENV's. | |
This module fixes it looking for the actual directories. We use only old stdlib | |
resources so it can work with as many Python versions as possible. | |
References: | |
http://stackoverflow.com/a/30650831/443564 |
I hereby claim:
To claim this, I am signing this object:
# functions.py | |
class CustomPessoa: | |
def __init__(self, *args, **kwargs): | |
for (k, v) in kwargs.items(): | |
setattr(self, k, v) | |
def target_function(pessoa, outro_arg): |
john:hey,Iamjohn.:John Doe |
Answer by Jim Dennis on Stack Overflow question http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118
Your problem with Vim is that you don't grok vi.
You mention cutting with yy and complain that you almost never want to cut whole lines. In fact programmers, editing source code, very often want to work on whole lines, ranges of lines and blocks of code. However, yy is only one of many way to yank text into the anonymous copy buffer (or "register" as it's called in vi).
The "Zen" of vi is that you're speaking a language. The initial y is a verb. The statement yy is a simple statement which is, essentially, an abbreviation for 0 y$:
0 go to the beginning of this line. y yank from here (up to where?)
Follow these rules below.
Follow PEP 8.
As a summary: