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
for monitoramento in monitor_videos.find(): | |
termos = {} | |
for video in monitoramento['value']['videos']: | |
x = db.youtube_history.find({'cod_video': video, 'date_year': final_date.year, 'date_hour': final_date.hour, | |
'date_month': final_date.month, 'date_day': final_date.day, | |
'classificacao': True}) | |
for historico in x: | |
for termo in historico['terms']: | |
termos.setdefault(termo,0) | |
termos[termo] += historico['view_count'] |
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
if you in (depressed, sadness, resignation): | |
print 'me, my sweetheart' | |
if feel(you) is 'lonely' or feel(you) is 'neglected': | |
talk_me(this) | |
while always: | |
I.take_care(you) | |
if you.love() is not me: | |
# I will follow in the madness | |
# I will | |
break # down... |
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 unittest | |
from datetime import date, timedelta | |
''' | |
Vaga para Desenvolvedor Web na empresa Orygens | |
Script inspirado http://github.com/praekelt/careers/raw/master/software_engineer.py | |
''' |
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
#Author: Marcel Pinheiro Caraciolo | |
#Confusion Matrix Generator | |
#Version: 0.1 | |
#email: caraciol at gmail . com | |
from pprint import pprint as _pretty_print | |
import math | |
class ConfusionMatrix(object): |
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 pyroc import * | |
random_sample = random_mixture_Model() # Generate a custom set randomly | |
print random_sample | |
[(1, 0.53543926503331496), (1, 0.50937533997469853), (1, 0.58701681878005862), (1, 0.57043399840000497), | |
(1, 0.56229469766270523), (1, 0.6323079028948545), (1, 0.72283523937059946), (1, 0.55079104791257383), | |
(1, 0.59841921172330748), (1, 0.63361144887035825)] |
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 twitterauth.models import User | |
import base64 | |
import httplib | |
import urllib | |
def send_msg(userkey,tp): | |
url = 'www.imified.com' | |
form_fields = { |
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
""" | |
MASSIVEcoupon.com | |
""" | |
from django.db import models # Replaced by models in gis package | |
from django.contrib.auth.models import User | |
from django.contrib.contenttypes.models import ContentType | |
from django.contrib.contenttypes import generic |
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
''' | |
Python Google Group Members Evolution Analysis | |
Gource: | |
http://code.google.com/p/gource | |
''' |
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
__author__ = '[email protected]' | |
__version__ = '0.2' | |
import oauth | |
import twitterT | |
import pickle | |
def first_auth(username,consumerKey,consumerSecret): | |
api = twitterT.OAuthApi(consumerKey,consumerSecret) | |
request_token = api.getRequestToken() |
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 -*- | |
""" | |
Base Recommender Models. | |
""" | |
# Authors: Marcel Caraciolo <[email protected]> | |
# Bruno Melo <[email protected]> | |
# License: BSD Style. |
OlderNewer