Skip to content

Instantly share code, notes, and snippets.

View pablojimeno's full-sized avatar
🔬
learning

Pablo Jimeno pablojimeno

🔬
learning
View GitHub Profile
@glasslion
glasslion / vtt2text.py
Last active March 23, 2024 20:47
This script convert youtube subtitle file(vtt) to plain text.
"""
Convert YouTube subtitles(vtt) to human readable text.
Download only subtitles from YouTube with youtube-dl:
youtube-dl --skip-download --convert-subs vtt <video_url>
Note that default subtitle format provided by YouTube is ass, which is hard
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which
is easier to process.
@bomberstudios
bomberstudios / uxspain-2015.md
Last active April 26, 2020 15:12
Ale Muñoz — UX Spain 2015

Design Hacking — Mi chapa del UX Spain 2015

Hola, mundo

Soy Ale Muñoz. Nací en Sevilla, aunque ahora vivo con mi mujer y mi hija en Madrid, donde trabajo para una empresa holandesa, con un equipo repartido por toda Europa, haciendo software que se usa en todos los rincones del mundo.

Me gusta diseñar, cocinar, y sentarme plácidamente a poner la mente en blanco sin hacer absolutamente nada.

Llevo muchos años ayudando a diseñadores y diseñadoras a trabajar menos, fabricando herramientas para automatizar tareas, definiendo procesos de trabajo, o gestionando proyectos de diseño. Si alguna vez habéis trabajado conmigo es posible que os haya contado algún truco para hacer algo más rápido

@xtrasmal
xtrasmal / sticky-footer.js
Created January 13, 2014 10:59
Angular sticky footer controller -todo- make a directive, hook this to a service or directly to some controller.
@aitor
aitor / gist:2214391
Created March 27, 2012 09:35
Cómo **no** dar accesso a datos públicos

Recientemente OpenData Euskadi liberó datos relacionados con el transporte público. Información al respecto:

http://ecodiario.eleconomista.es/espana/noticias/3850101/03/12/El-Gobierno-vasco-libera-los-datos-de-transporte-publico-a-traves-de-Moveuskadi-y-Open-Data-Euskadi.html

Obviamente la iniciativa es bienintencionada, pero como en muchas otras implementaciones de datos públicos eso es lo mejor que se puede decir de ella.

Una lista rápida de WTFs sobre el proceso de acceso a los mismos:

  • Registro obligatorio para el uso -> MAL
@dchelimsky
dchelimsky / output.txt
Created March 16, 2012 15:28
RSpec is not the reason your rails test suite is slow
[david: compare]$ # at this point we have a stock rails app with no minitest tests and one pending rspec example
[david: compare]$
[david: compare]$ time rake test
Run options:
# Running tests:
Finished tests in 0.030419s, 0.0000 tests/s, 0.0000 assertions/s.
@ecleel
ecleel / mdb.rb
Created February 8, 2012 05:05 — forked from dtolj/gist:784634
Ruby MS Access adapter
require 'rubygems'
require 'win32ole'
require 'csv'
mdb_file="c:/Sites/labs/50q.bok"
class AccessDb
attr_accessor :mdb, :connection, :data, :fields, :catalog
def initialize(mdb=nil)
@anthonyshort
anthonyshort / gist:1178298
Created August 29, 2011 12:31
Prefixing with Sass
@mixin border-radius($radius, $prefixes: -moz -webkit -o) {
@each $prefix in $prefixes {
#{$prefix}-border-radius:$radius;
}
border-radius:$radius;
}
#id {
@include border-radius(5px, -moz -webkit);
<?php
function seo($url) {
$url = strToLower($url);
$url = str_replace(
array("á", "é", "í", "ó", "ú", "ñ", "ü"),
array("a", "e", "i", "o", "u", "n", "u"),
$url);
$tokens = preg_split("/[^a-zA-Z0-9]+/", $url);
$url = implode("-", $tokens);