This file contains hidden or 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
SELECT SERVICIOINGRE, COUNT(*) FROM [mexico_open_data.Egreso_2010_2014] | |
Group By 1 | |
Order By 2 DESC | |
Limit 10 |
This file contains hidden or 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 main(argv): | |
people = raw_input('G+ id to analyze? ') | |
postnumers = int(raw_input('number of posts ')) | |
service, flags = sample_tools.init( | |
argv, 'plus', 'v1', __doc__, __file__, | |
scope='https://www.googleapis.com/auth/plus.me') | |
try: | |
person = service.people().get(userId=people).execute() |
This file contains hidden or 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
try: | |
writer = csv.writer(myfile) | |
writer.writerow(('id', 'content', 'test', 'replies', 'plusoners', 'resharers')) | |
# Information from activities | |
count = 0 | |
while (count < postnumers): | |
activities_document = request.execute() | |
if 'items' in activities_document: | |
for activity in activities_document['items']: |
This file contains hidden or 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
SELECT Count(ESTADO_CIVIL),ESTADO_CIVIL FROM [mexico_open_data.sinac_2008_2013] | |
group by 2 | |
order by 1 DESC |
This file contains hidden or 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
<iron-pages attr-for-selected="data-route" selected="{{route}}"> | |
<section data-route="home"> | |
<paper-material elevation="1"> | |
<!-- contenido --> | |
<mi-saludo></mi-saludo> | |
</paper-material> | |
<paper-material elevation="0"> | |
<!-- contenido --> | |
</paper-material> |
This file contains hidden or 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
<link rel="import" href="../../bower_components/polymer/polymer.html"> | |
<link rel="import" href="../../bower_components/firebase-element/firebase-collection.html"> | |
<link rel="import" href="../../bower_components/firebase-element/firebase-document.html"> | |
<dom-module id="app-comercios"> | |
<template> | |
<div class="vertical-section"> | |
<h3>Comercios Destacados</h3> | |
<template is="dom-bind"> | |
<firebase-collection |
This file contains hidden or 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
#include <DHT.h> | |
#include <Bridge.h> | |
#define DHTPIN 7 | |
#define DHTTYPE DHT11 | |
DHT dht(DHTPIN, DHTTYPE); | |
void setup() { | |
Bridge.begin(); | |
dht.begin(); |
This file contains hidden or 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 webanalysis(file): | |
filename =str(datetime.datetime.now()) + '.csv' | |
myfile = open(filename, 'wb') | |
try: | |
writer = csv.writer(myfile) | |
writer.writerow(('url', 'webcomponents')) | |
driver = webdriver.PhantomJS( | |
executable_path='') |
This file contains hidden or 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
<html> | |
<head> | |
<!-- adding reference firebase.js --> | |
<script src='https://cdn.firebase.com/js/client/2.2.1/firebase.js'></script> | |
<!-- Jquery support --> | |
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script> | |
</head> | |
<body> | |
<div id='mensajesDiv'></div> |
This file contains hidden or 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
#open a img-file | |
with open(photo_file, 'rb') as image: | |
image_content = base64.b64encode(image.read()) | |
service_request = service.images().annotate( | |
body={ | |
'requests': [{ | |
'image': { | |
'content': image_content | |
}, | |
'features': [{ |