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
# Copyright (c) 2018. Enderson Menezes Cândido [www.endersonmenezes.com.br] | |
# Your console will display a list of available discount coupons. | |
# Do not use this code to gain advantage or illegally enter the event. | |
# Code just to demonstrate that creating discount coupons in sympla using simple word combinations can be hacked. | |
# This gist serves to show how social engineering be taken care of by event organizations. | |
# To event organizers please create discount coupon processes and tracking processes. | |
# Working Since 2018 | |
import requests | |
import itertools |
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 pymongo | |
import pandas as pd | |
from pymongo import MongoClient | |
def test_view(request): | |
client = MongoClient('Mongo URI') # Conexão ao Banco | |
db = client['database_name'] # Seleção de Banco de Dados | |
test = db.test # Seleção da Coleção de Dados | |
test = pd.DataFrame(list(test.find())) #Consulta tudo na Coleção -> Lista (python) -> DataFrame (pandas) |
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
# Enderson Menezes | |
# Django Brasil | |
# 05/04/2019 | |
# Django 2.2 | |
from django import forms | |
from .models import CadastroSubEntidades | |
# Declare your form | |
class EscalarOcorrenciaRespForm(forms.Form): |
NewerOlder