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 export_subscriptions(self,request): | |
# coloca o mimetype da pagina para text/csv | |
response = HttpResponse(mimetype='text/csv') | |
# vai ser por download e o nome do arquivo sera listaInscricao | |
response['Content-Disposition'] = 'attachment; filename=listaInscricao.csv' | |
# resgata todos os objetos do model correte(subscription) | |
subscriptions = self.model.objects.all() | |
# inicializa a tupla vazia | |
tuplaWriteCsv = () | |
# inicializa a tupla temporaria |
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
# -*- coding: utf-8 -*- | |
__author__ = 'lucas' | |
""" | |
Description: | |
Version: | |
Data: 01/05/12 | |
packages: , | |
""" |
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
# Numerous always-ignore extensions # | |
##################################### | |
*.diff | |
*.err | |
*.orig | |
*.log | |
*.rej | |
*.swo | |
*.swp | |
*.vi |
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
- Criando uma instância AWS EC2 | |
- Sistema Operacional Amazon Linux AMI 2012.09.01 64bit | |
- Tipo t1.micro | |
- Zona : sa-east-1a | |
- Tags | |
- Name : seuNomeInstalacao | |
- Grupo de Segurança : seuGrupoSeguranca | |
- Portas abertas : 22(SSH), 80(HTTP), 3306(MYSQL) | |
- Chave de acesso : | |
E:\Reginaldo\Programas\suaChave.pem |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import uuid | |
from django.contrib.auth.models import User | |
from django.contrib.auth import login as auth_login | |
from django.db import models | |
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
[user] | |
name = Lucas Simon | |
email = lucassrod@gmail.com | |
[core] | |
editor = 'vim' | |
excludesfile = /home/lucas/.gitignore | |
[diff] | |
tool = vimdiff |
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
#Download Elementary OS from here: | |
#http://sourceforge.net/projects/elementaryos/files/stable/ | |
#First you update your system | |
sudo apt-get update && sudo apt-get dist-upgrade | |
#Install Google Chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |
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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Theme - Brogrammer/brogrammer.tmTheme", | |
"dictionary": "Packages/Languages/Portuguese/pt_BR.dic", | |
"file_exclude_patterns": | |
[ | |
".*", | |
"*.pyc", | |
"*.pyo", | |
"*.exe", |
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
var crawlerjs = require('crawler-js'); | |
var mongo = require('mongodb'); | |
var monk = require('monk'); | |
var db = monk('localhost:27017/airport'); | |
var crawler = { | |
interval: 1000, | |
getSample: 'http://www.aeroportosdobrasil.com/aeroportos/listagem/1', | |
get: 'http://www.aeroportosdobrasil.com/aeroportos/listagem/[numbers:1:33:1]', | |
preview: 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 | |
import requests | |
from .exceptions import NotBoundException | |
from .resource import AbstractResource | |
from .settings import BASE_URL | |
from .transaction import Transaction | |
OlderNewer