Skip to content

Instantly share code, notes, and snippets.

@britodfbr
britodfbr / .gitattributes
Created February 13, 2020 03:38 — forked from Voonder/.gitattributes
Sample of git config file (Example .gitconfig, .gitattributes, .gitignore)
# Auto detect text files and perform LF normalization
* text=auto
# Documents
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
@britodfbr
britodfbr / gist:02b27c18bddc877ff25d8fdad9be9c0e
Last active July 17, 2017 15:28
atributos dinamicos em classes Python
class Foo:
'''
classdocs
>>> f = Foo()
>>> f.nome = 'nome'
>>> f.nome
'nome'
>>> f._id = 1
>>> f._id
1
@britodfbr
britodfbr / gist:0df2b3ce052fa1564dbf9fe5d8f4671e
Created July 17, 2017 14:48
Atributos dinamicos para classes
class Foo:
'''
classdocs
>>> f = Foo()
>>> f.nome = 'nome'
>>> f.nome
'nome'
>>> f._id = 1
>>> f._id
1