Marcel marcelcaraciolo

View alerts.py
1 2 3 4 5 6 7 8 9 10
#-*- coding: utf-8 -*-
 
import celery
import hashlib
import datetime
 
from django.db import models
from django.conf import settings
from django.utils.html import escape
from django.utils.translation import ugettext_lazy as _
View tasks.py
1 2 3 4 5 6 7 8
from __future__ import absolute_import
from celery import shared_task
 
# import the logging library
import logging
 
# Get an instance of a logger
logger = logging.getLogger(__name__)
View html_equipaments.html
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
<link rel="shortcut icon" href="{{ STATIC_URL }}img/favicon.ico" type="image/x-icon" />
 
<title>Genomika Labs</title>
<!--[if lt IE 9]>
View sign.py
1 2 3 4 5 6 7 8 9
import os, sys
# sys.path.insert(0, '../')
 
import libxml2
import xmlsec
 
 
 
def start():
View create_xml.py
1 2 3 4 5 6 7 8 9 10
# -*- coding: utf-8 -*-
 
from xml.dom import minidom
from core.utils import asciize
from signin import sign_file
import urllib2
import os, decimal
import settings
from nfe.exceptions import NoContratorOrIncompleteInformation
from nfe.utils import dict2XML
View excel_read.py
1 2 3 4 5 6 7 8 9 10
import xlrd
def getDataFromFile(fileName):
with xlrd.open_workbook(fileName) as wb:
# we are using the first sheet here
worksheet = wb.sheet_by_index(0)
# getting number or rows and setting current row as 0 -e.g first
num_rows, curr_row = worksheet.nrows - 1, 0
# retrieving keys values(first row values)
View pso.py
1 2 3 4 5 6 7 8 9 10
def _executar(self):
#Atualizando as infos de cada clan intra.
for i in range(0, TSPClanConstants.NUMBER_OF_CLANS):
bando = self.clans[i]
for i in range(0, len(bando)):
self.atualizaInformacao(bando, i);
bando[i].fitness = TSP.evaluate(bando[i].posicao)
bando[i].atualizarP()
 
#Atualizando as infos dos clans
View password_reset_confirm.html
1 2 3 4 5 6 7 8 9 10
{% extends "base.html" %}
 
{% load i18n %}
 
{% block title %}{% trans "Nova senha" %} | {{ block.super }}{% endblock %}
 
{% block header_title %}{% trans "Nova senha" %}{% endblock %}
 
{% block main %}
<div class="message info">
View urls.py
1 2 3 4 5 6 7 8 9 10
# -*- coding: utf-8 -*-
 
from django.conf.urls import patterns, url
 
 
urlpatterns = patterns('account.views',
url(r'^$', 'index', name='account_index'),
url(r'^login/$', 'login', name='account_login'),
url(r'^alterar-senha/$', 'password_change', name='account_password_change'),
)
View print_examples.py
1 2 3 4 5 6 7 8 9
#print command
 
 
print('hello world')
print('maça')
 
x = 'hello world'
 
print(x)
Something went wrong with that request. Please try again.