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
mail.settings.server = 'smtp.gmail.com:587' # seu servidor SMTP | |
mail.settings.sender = '[email protected]' # seu email | |
mail.settings.login = '[email protected]:<sua senha>' | |
mail.settings.tls = True |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
# | |
# date: 20/11/2009 | |
# author: italo moreira campelo maia (italo maia) | |
# website: http://italomaia.com | |
# blog: http://eusouolobomau.blogspot.com/ | |
# |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# default_application, default_controller, default_function | |
# are used when the respective element is missing from the | |
# (possibly rewritten) incoming URL | |
# | |
default_application = 'init' # ordinarily set in base routes.py | |
default_controller = 'default' # ordinarily set in app-specific routes.py | |
default_function = 'index' # ordinarily set in app-specific routes.py |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Seta a aplicacao, controlador e action padrao. | |
default_application = 'trademarket' | |
default_controller = 'default' | |
default_function = 'index' | |
# Routes In | |
routes_in = ( |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# default_application, default_controller, default_function | |
# are used when the respective element is missing from the | |
# (possibly rewritten) incoming URL | |
# | |
default_application = 'clientes' # ordinarily set in base routes.py | |
default_controller = 'clientes' # ordinarily set in app-specific routes.py | |
default_function = 'novo' # ordinarily set in app-specific routes.py |
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
# Sem áudio | |
ffmpeg -f x11grab -r 30 -s 1366x768 -i :0+0,0 -vcodec libx264 -vpre lossless_ultrafast -threads 0 /tmp/tmp9sfmn4.mkv | |
# Com áudio | |
ffmpeg -f alsa -i pulse -f x11grab -r 30 -s 1366x768 -i :0+0,0 -ac 2 -acodec flac -ab 128k -vcodec libx264 -vpre lossless_ultrafast -threads 0 /tmp/tmprSIsES.mkv |
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
# coding: utf8 | |
import unittest | |
class ContatosModel(unittest.TestCase): | |
def test_teste(self): | |
contatos = db(db.contatos.id > 0).count() | |
self.assertEquals(contatos, 0) |
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
""" | |
Tipo de campo que facilita a aplicação de campos de gênero (sexo). | |
Fonte: http://www.marinhobrandao.com/blog/sexofield_12/ | |
""" | |
import re | |
from django.db import models | |
from django import forms | |
from django.core import validators |
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
""" | |
Tipo de campo que facilita a aplicação de campos de estado brasileiro. | |
Fonte: http://www.marinhobrandao.com/blog/estadobrasileirofield_11/ | |
""" | |
import re | |
from django.db import models | |
from django import forms | |
from django.core import validators |
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
# coding: utf8 | |
from django.db import models | |
from django.contrib.auth.models import User, Permission | |
class Operator(models.Model): | |
user= models.ForeignKey(User,related_name='operator_user',blank=True,null=True,editable=False) | |
name = models.CharField(max_length=80) | |
username = models.CharField(max_length=30,unique=True) | |
password = models.CharField(max_length=30) |
OlderNewer