This file contains 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
print 'teste' |
This file contains 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
In [35]: firm_id. | |
firm_id.ATTRIBUTE_NODE firm_id.attributes firm_id.hasAttributeNS firm_id.normalize firm_id.setAttributeNS | |
firm_id.CDATA_SECTION_NODE firm_id.childNodes firm_id.hasAttributes firm_id.ownerDocument firm_id.setAttributeNode | |
firm_id.COMMENT_NODE firm_id.cloneNode firm_id.hasChildNodes firm_id.parentNode firm_id.setAttributeNodeNS | |
firm_id.DOCUMENT_FRAGMENT_NODE firm_id.firstChild firm_id.insertBefore firm_id.prefix firm_id.setIdAttribute | |
firm_id.DOCUMENT_NODE firm_id.getAttribute firm_id.isSameNode firm_id.previousSibling firm_id.setIdAttributeNS | |
firm_id.DOCUMENT_TYPE_NODE firm_id.getAttributeNS firm_id.isSupported firm_id.removeAttribute |
This file contains 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
@staff_member_required | |
def carregar_alunos(request): | |
if request.method == "POST": | |
if 'listalunos' in request.FILES: | |
f = request.FILES['listalunos'] | |
chunk = f.chunks().next() | |
for line in chunk.split('\n'): | |
email = line | |
login = email.split('@')[0] | |
password = generate_key() |
This file contains 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
import os | |
from subprocess import Popen | |
path = os.path.dirname(os.path.abspath(__file__)) | |
#to avoid all the *.py files to be in the list | |
folders = filter(os.path.isdir, os.listdir('.')) | |
for folder in folders: | |
#copying the entrada.txt and saidaM.txt file into each folder |
This file contains 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
def qsortr(list): | |
return [] if list==[] else qsortr([x for x in list[1:] if x < list[0]])+ [list[0]] + qsortr([x for x in list[1:] if x >= list[0]]) |
This file contains 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
#encoding: utf-8 | |
itens = ['Perfil', 'Formação','Disciplinas','Pesquisa','Produção','Orientação','Eventos','Bancos','Lotes','PAAD','RAAD','Relatórios'] | |
for b in itens: | |
print '<h:commandLink value="%s" />' % b |
This file contains 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
{% extends "base.html" %} | |
{% load gravatar %} | |
{% block title %}{{ talk.title }} | {% endblock %} | |
{% block content %} | |
<article role="article" id="palestra"> | |
<h3>Palestra</h3> | |
<div class="article-content"> | |
<article class="talk"> | |
<h3>{{ talk.title }}</h3> | |
<p>{{ talk.abstract }}</p> |
This file contains 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
from django.db import models | |
class Imovel(models.Model): | |
#atributos | |
class Imagem(models.Model): | |
imovel = models.ForeignKey(Imovel, related_name="imagens") | |
descricao = models.CharField(max_length=200) | |
imagem = models.ImageField(upload_to='imagens') |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title>{% block title %}{% endblock %}</title> | |
</head> | |
<body> | |
<marquee>Teste!</marquee> | |
{% block content %}{% endblock %} | |
<h1>Inserir</h1> |
This file contains 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
/* | |
* RUExtractor.cpp | |
* | |
* Created on: May 6, 2013 | |
* Author: renato | |
*/ | |
#include "RUExtractor.hpp" | |
#include <math.h> | |
#include <algorithm.h> |
OlderNewer