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
continent country
Asia AFG
Europe NLD
North America ANT
Europe ALB
Africa DZA
Oceania ASM
Europe AND
Africa AGO
North America AIA
['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
<?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>
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):
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',
@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

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 / artik_update.md
Last active March 22, 2018 19:34
Actualizar Artik

Paso 1: conectarse a WiFi

systemctl status wpa_supplicant

Si no está iniciado

systemctl start wpa_supplicant
dhclient wlan0

Cuando termine de ejecutar anoten la IP

@gfhuertac
gfhuertac / gpio_001.md
Last active March 22, 2018 19:39
Pasos para desafío 2 Artik - GPIO

Paso 1: abrir el IDE de Artik y crear un proyecto nuevo

Iremos a crear un nuevo proyecto, y elegiremos uno de tipo C

  • Luego, elegiremos Artik 5/7 Fedora C Project
  • Colocaremos un nombre
  • Siguiente

Elegiremos GPIO del menú Examples

  • Finalizar
@gfhuertac
gfhuertac / zigbee_001.md
Last active March 22, 2018 19:34
Pasos para desafío 1 Artik: una red local en ZigBee

Paso 1: actualizar el sistema

dnf remove zigbeed
dnf install zigbeed

systemctl status zigbee-daemon
systemctl start zigbee-daemon

Paso 2: ejecutar en dos nodos el programa de test de zigbee