Skip to content

Instantly share code, notes, and snippets.

Avatar

Manuel Aristarán jazzido

View GitHub Profile
View EPH_ingreso.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jazzido
jazzido / shell_task_with_stdin.py
Created Apr 13, 2020
Prefect ShellTask with STDIN support
View shell_task_with_stdin.py
import os
import subprocess
import tempfile
from typing import Any
import prefect
from prefect.utilities.tasks import defaults_from_attrs
class ShellTaskWithStdin(prefect.Task):
@jazzido
jazzido / Precios.ipynb
Last active Jan 24, 2020
¿Quién fabrica lo que compramos?
View Precios.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jazzido
jazzido / PASO 2017 - Centros de votación geolocalizados.ipynb
Last active Aug 16, 2019
PASO 2017 — Intentando Geolocalizar los establecimientos de votación
View PASO 2017 - Centros de votación geolocalizados.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View scraper.py
import sys
import mechanize
import logging
import unicodecsv
from datetime import datetime
from bs4 import BeautifulSoup
logger = logging.getLogger("mechanize")
logger.addHandler(logging.StreamHandler(sys.stderr))
logger.setLevel(logging.INFO)
@jazzido
jazzido / omnibook.ipynb
Created Apr 12, 2019
Playing with music21 (web.mit.edu/music21)
View omnibook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jazzido
jazzido / index.html
Last active Apr 8, 2019
Webcam barcode reading (zbar, emscripten)
View index.html
<!DOCTYPE html>
<html>
<head>
<title>JS in-browser barcode reader</title>
<style type="text/css">
body > div {
position: relative;
width: 320px; height: 240px;
}
video { position: absolute; top: 0; left: 0; width: 320px; height: 240px; }
@jazzido
jazzido / index.html
Last active Nov 22, 2018
Glowing text effect with CSS3
View index.html
<html>
<head>
<style type="text/css">
.glow {
-webkit-animation-duration: 1s;
-webkit-animation-name: glow;
-webkit-animation-direction: alternate;
-webkit-animation-iteration-count: infinite;
animation-duration: 1s;
animation-name: glow;
@jazzido
jazzido / graphql.rb
Last active Oct 17, 2018
Neo4J + GraphQL — Toy example using graphql-ruby and neo4jrb
View graphql.rb
require 'graphql'
require 'neo4j'
neo4j_url = ENV['NEO4J_URL'] || 'http://localhost:7474'
session = Neo4j::Session.open(:server_db, neo4j_url)
class Author
include Neo4j::ActiveNode
id_property :id_author
@jazzido
jazzido / README.md
Last active May 24, 2018 — forked from zbjornson/index.html
Diferencia porcentual votos positivos al FPV entre PASO 2011 y 2015 — Por provincia
You can’t perform that action at this time.