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
[
{
"constant": false,
"inputs": [
{
"name": "targetMember",
"type": "address"
},
{
"name": "memberName",
@gfhuertac
gfhuertac / ui.py
Last active December 4, 2018 14:50
UI demo
from tkinter import Tk, Label, Button, StringVar
class AlprGui:
def __init__(self, master):
self.master = master
master.title("Última placa patente reconocida")
self.label_index = 0
self.label_text = StringVar()
self.label_text.set("")
@gfhuertac
gfhuertac / retweets.csv
Created November 29, 2018 19:20
Retweets for the chilean election
We can't make this file beautiful and searchable because it's too large.
id,original_id,type
942136976303673346,942025474628308992,Retweet
942136977427714048,941680706241036293,Retweet
942137000576147456,942095888389992448,Retweet
942137004644544512,942129425340157952,Retweet
942137026954125320,942052226368974849,Retweet
942137039465734146,,Retweet
942137042091245568,942031768835764224,Retweet
942137065801703429,,Retweet
942137089298137088,941488629268013056,Retweet
@gfhuertac
gfhuertac / mentions.csv
Created November 29, 2018 19:19
Mentions for the chilean election
We can't make this file beautiful and searchable because it's too large.
tweet_id,screen_name
941680706241036293,sebastianpinera
941680706241036293,realpatchadams
942095888389992448,sebastianpinera
942128729458962440,guillier
942137275428868096,sebastianpinera
941680706241036293,sebastianpinera
941680706241036293,realpatchadams
941377225680654336,sebastianpinera
941377225680654336,mbachelet.
@gfhuertac
gfhuertac / hashtags.csv
Created November 29, 2018 19:18
hashtags for the chilean presidential election
We can't make this file beautiful and searchable because it's too large.
tweet_id,hashtag
942025474628308992,GuillierPresidente
942095888389992448,ChileElige
942095888389992448,ArribaLosCorazones
942095888389992448,TiemposMejores
942031768835764224,Elecciones2017
942031768835764224,EleccionesChile
942031768835764224,StarWars
942031768835764224,StarWarsTheLastJedi
941351464068354048,TiemposMejores
import numpy
#Escribe verifica(matriz) acá
tablero = numpy.zeros([6,7], dtype=int)
turno = 1
while(verifica(tablero) == 0):
if tablero.all():
print("No hay ganadores")
exit()
@gfhuertac
gfhuertac / openalpr_camera.py
Last active November 3, 2018 22:53 — forked from jkjung-avt/openalpr_camera.py
Real-time license plate recognition with 'openalpr' using a video file as input. Please check out my "Building and Testing 'openalpr' on Jetson TX2" post for more information: https://jkjung-avt.github.io/openalpr-on-tx2/
# test_camera.py
#
# Open an RTSP stream and feed image frames to 'openalpr'
# for real-time license plate recognition.
import numpy as np
import cv2
from openalpr import Alpr
city country
1 AFG
2 AFG
3 AFG
4 AFG
5 NLD
6 NLD
7 NLD
8 NLD
9 NLD
capital country
1 AFG
5 NLD
33 ANT
34 ALB
35 DZA
54 ASM
55 AND
56 AGO
62 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