Skip to content

Instantly share code, notes, and snippets.

View avances123's full-sized avatar
🏠
Working from home

Fabio Rueda avances123

🏠
Working from home
View GitHub Profile
mp_teammates_are_enemies 1
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@avances123
avances123 / gist:bc3b8a171e5b71001eba
Last active August 29, 2015 14:23
tuits de judios
['judios','horno']
[Wed Jun 24 13:54:54 +0000 2015] @DiagarDiana: ¿En qué se diferencian las pizzas de los judíos? En que las pizzas no gritan en el horno. #SiTeRiesPierdes @Wismichu
[Wed Jun 24 12:37:24 +0000 2015] @gallinero953: RT @Guishetono: con lo calentitos que están los judíos en el horno
[Wed Jun 24 12:14:21 +0000 2015] @Guishetono: con lo calentitos que están los judíos en el horno
[Wed Jun 24 04:52:01 +0000 2015] @lefuelar: RT @MarckLibsan: ¿Se saben ese chiste de los judíos en un horno... ¡¡MALDITOS EMPLEADOS DE +KOTA, MÁTENLOS SIN PIEDAD!! #MaskotaMaltrataAni…
[Wed Jun 24 04:26:03 +0000 2015] @SergeAuguste: RT @MarckLibsan: ¿Se saben ese chiste de los judíos en un horno... ¡¡MALDITOS EMPLEADOS DE +KOTA, MÁTENLOS SIN PIEDAD!! #MaskotaMaltrataAni…
[Wed Jun 24 04:24:14 +0000 2015] @Vash_pop: RT @MarckLibsan: ¿Se saben ese chiste de los judíos en un horno... ¡¡MALDITOS EMPLEADOS DE +KOTA, MÁTENLOS SIN PIEDAD!! #MaskotaMaltrataAni…
[Wed Jun 24 04:21:31 +0000 2015] @Derx0: RT @MarckLibsan: ¿Se saben
@avances123
avances123 / motion.py
Last active August 29, 2015 14:18
Para trackear a la culebra
import cv2
import argparse
import os
import glob
import ipdb
import numpy as np
from matplotlib import pyplot as plt
def last_img():
sudo apt-get install -y libc6-armel gcc-multilib
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
mkdir /tmp/plex
wget -P /tmp/plex https://downloads.plex.tv/plex-media-server/0.9.11.7.803-87d0708/plexmediaserver-ros6-binaries_0.9.11.7.803-87d0708_armel.deb
dpkg -x /tmp/plex/plexmediaserver-ros6-binaries_0.9.11.7.803-87d0708_armel.deb /tmp/plex
sudo mv /tmp/plex/apps /
sudo mkdir /apps/plexmediaserver/temp
sudo mkdir /apps/plexmediaserver/MediaLibrary
sudo rm -rf /tmp/plex/
@avances123
avances123 / schema.sql
Created January 26, 2015 17:17
returning problem
CREATE TABLE pis1
(
x serial NOT NULL,
y integer,
CONSTRAINT pk_lineas PRIMARY KEY (x)
);
CREATE TABLE pis2
(

Keybase proof

I hereby claim:

  • I am avances123 on github.
  • I am avances123 (https://keybase.io/avances123) on keybase.
  • I have a public key whose fingerprint is 9B22 A564 3813 097F 89F4 261D 9CD1 3F65 ABAE FAFA

To claim this, I am signing this object:

# encoding: utf8 1,1 Top# encoding: utf8
import argparse
from datetime import datetime
import json
from random import randint
import requests
import sys
from time import sleep
@avances123
avances123 / alphabetical.py
Last active August 29, 2015 14:02
ejercicios marcos python
# http://stackoverflow.com/a/19618657/472866
#import ipdb
groups = []
cur_longest = ''
prev_char = ''
##ipdb.set_trace()
for char in s.lower():
if prev_char and char < prev_char:
groups.append(cur_longest)
cur_longest = char
@avances123
avances123 / subevolumen.py
Last active August 29, 2015 14:02
Un programa para subirle el volumen a los podcast, lo uso para oirlos cuando hago deporte o hay mucho ruido.
#!/usr/bin/python
from pydub import AudioSegment
import sys
import argparse
parser = argparse.ArgumentParser(description='Sube el volumen a un mp3 (ideal para los podcasts cuando vamos a hacer deporte)')
parser.add_argument('file_orig', help='Fichero origen')
parser.add_argument('file_dest', help='Fichero destino')
parser.add_argument('--db',metavar='dB', type=int,default=6,help='Numero de decibelios a subir')