Skip to content

Instantly share code, notes, and snippets.

View jazzido's full-sized avatar
💭
𝄢

Manuel Aristarán jazzido

💭
𝄢
View GitHub Profile
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 January 10, 2022 03:52
Glowing text effect with CSS3
<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 / index.html
Last active October 5, 2021 07:11
Webcam barcode reading (zbar, emscripten)
<!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 / graphql.rb
Last active July 3, 2021 06:36
Neo4J + GraphQL — Toy example using graphql-ruby and neo4jrb
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 / shell_task_with_stdin.py
Created April 13, 2020 17:13
Prefect ShellTask with STDIN support
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 January 24, 2020 22:27
¿Quién fabrica lo que compramos?
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 August 16, 2019 16:47
PASO 2017 — Intentando Geolocalizar los establecimientos de votación
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 April 12, 2019 19:55
Playing with music21 (web.mit.edu/music21)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jazzido
jazzido / README.md
Last active May 24, 2018 13:01 — forked from zbjornson/index.html
Diferencia porcentual votos positivos al FPV entre PASO 2011 y 2015 — Por provincia