Skip to content

Instantly share code, notes, and snippets.

View gfhuertac's full-sized avatar

Gonzalo Huerta-Canepa gfhuertac

  • Microsoft
  • Viña del Mar, Chile
  • X @gohucan
View GitHub Profile

Paso 1: crear proyecto

En el IDE de Artik elegir nuevo proyecto C

  • Colocar nombre
  • Elegir Artik 5/7 Fedora C Project
  • Siguiente

De Examples seleccionar ZigBee

  • Aceptar y Finalizar
@gfhuertac
gfhuertac / main.py
Created March 23, 2018 18:44
Python script to crawl users from their profile at Google Scholar
"""
Module to import the citations of an specific author from her Google's scholar page
"""
# sys modules
import time
# 3rd party modules
import scrapy
from scrapy.crawler import CrawlerProcess
from scrapy.exceptions import CloseSpider
from datetime import datetime
import holidays
HOLIDAYS_IN_CHILE = holidays.HolidayBase()
""" Holidays in Chile """
HOLIDAYS_IN_CHILE.append(['2013-01-01', '2013-03-29', '2013-03-30', '2013-05-01', '2013-05-21',
'2013-06-27', '2013-07-16', '2013-08-15', '2013-09-17', '2013-09-18',
'2013-09-19', '2013-10-10', '2013-10-31', '2013-11-01', '2013-12-08', '2013-12-25'])
HOLIDAYS_IN_CHILE.append(['2014-01-01', '2014-04-18', '2014-04-19', '2014-05-01', '2014-05-21',
'2014-06-29', '2014-07-16', '2014-08-15', '2014-09-17', '2014-09-18',
import matplotlib.pyplot
import numpy
import math
number_codes = ['0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011']
def write_code(bcode, pos, number_value, separator=False):
#tu codigo aca
def write_separator(bcode, pos):
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
<s:element name="PingService">
<s:complexType />
</s:element>
<s:element name="PingServiceResponse">
<s:complexType>
<s:sequence>
['1530s', '1750s', '1760s', '1770s', '1780s', '1790s', '1820s', '1830s', '1840s', '1850s', '1860s', '1870s', '1900s', '24/7', 'A-list', 'A-team', 'ABO_blood_group_system', 'ASCII_character', 'ASL', 'A_level', 'Abelian_group', 'Abies', 'Abramis', 'Abrocoma', 'Abstract_Expressionism', 'Abudefduf', 'Academy_Award', 'Academy_of_Motion_Picture_Arts_and_Sciences', 'Academy_of_Television_Arts_and_Sciences', 'Acanthisitta', 'Acanthocephala', 'Acanthocybium', 'Acanthophis', 'Acanthopterygii', 'Acanthoscelides', 'Acanthuridae', 'Acanthurus', 'Acaridae', 'Acarina', 'Accipiter', 'Accipitridae', 'Acer', 'Aceraceae', 'Acherontia', 'Acheta', "Achilles'_heel", 'Achoerodus', 'Achras', 'Acinonyx', 'Acipenser', 'Acipenseridae', 'Acnidosporidia', 'Acocanthera', 'Acoraceae', 'Acorus', 'Acrasiomycetes', 'Acrididae', 'Acridotheres', 'Acris', 'Acrobates', 'Acrocephalus', 'Acrocomia', 'Acropora', 'Acrostichum', 'Actias', 'Actiniaria', 'Actiniopteris', 'Actinomycetaceae', 'Actinomycetales', 'Actinomyxidia', 'Actinopoda', 'Actitis', 'A
continent country
Asia AFG
Europe NLD
North America ANT
Europe ALB
Africa DZA
Oceania ASM
Europe AND
Africa AGO
North America AIA
country language is_official percentage
AFG Pashto t 52.4
NLD Dutch t 95.6
ANT Papiamento t 86.2
ALB Albaniana t 97.9
DZA Arabic t 86.0
ASM Samoan t 90.6
AND Spanish f 44.6
AGO Ovimbundu f 37.2
AIA English t 0.0
capital country
1 AFG
5 NLD
33 ANT
34 ALB
35 DZA
54 ASM
55 AND
56 AGO
62 AIA
city country
1 AFG
2 AFG
3 AFG
4 AFG
5 NLD
6 NLD
7 NLD
8 NLD
9 NLD