This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print ' '.join([(lambda x: str(x) if x % 5 != 0 and x % 3 != 0 else 'Buzz' if x % 5 == 0 else 'Fizz')(x) for x in range(1,100)]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName registro.linuxtour.org | |
DocumentRoot /var/www/flisol-reg | |
WSGIScriptAlias / /var/www/flisol-reg/django.wsgi | |
alias /archivos/ /var/www/flisol-reg/media/ | |
alias /media/ /var/www/flisol-reg/media/admin/ | |
</VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table id="grafo"> | |
<caption>Precio al Productor</caption> | |
<thead> | |
<tr> | |
<td></td> | |
<th scope='col'>Enero</th> | |
<th scope='col'>Febrero</th> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Script para bajar todos los programas de Sin Fronteras de William Grisby | |
#Sea paciente que dilata por que es mas o menos 8mb por programa :S | |
#Adolfo Jurgen Fitoria Escobar http://twitter.com/Fitoria | |
#Bajo licencia Beerware (http://en.wikipedia.org/wiki/Beerware) | |
from urllib import urlopen | |
import re | |
base_url = 'http://www.radiolaprimerisima.com' | |
url = 'http://www.radiolaprimerisima.com/sinfrontera' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo = 'jasjajja jiwjerojfaks ojo jsodfj psdfjalsfkjo ijosijdfasjdf oqiwjfoaksjdfoj asdlfkjoije' | |
lista = list(foo) | |
for i in range(0, len(lista), 20): | |
lista.insert(i, '\n') | |
print ''.join(lista) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⨀_⨀ | |
⨂_⨂ | |
(/◔ ◡ ◔)/ | |
°ﺑ° | |
(¬_¬) | |
(´・ω・`) | |
(ʘ_ʘ) | |
(ʘ‿ʘ) | |
(๏̯͡๏ ) | |
(◕_◕) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urlparse import parse_qs | |
from django import template | |
from django.template.defaultfilters import stringfilter | |
register = template.Library() | |
@stringfilter | |
def youthumbnail(value, args): | |
'''returns youtube thumb url | |
args s, l (small, large)''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hola compañeros. | |
Lucía Lezama (@lu05) amiga mía que estudia comunicación social desea realizar un reportaje sobre el movimiento de software libre en Nicaragua y necesita gente para ser entrevistada para el reportaje. | |
La temática es la siguiente: | |
- Que es SL | |
- Comunidades en Nicaragua | |
- SL en empresas. | |
- otros. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Script para spamear a los de twittnic | |
#author: @fitoria | |
#Bajo los terminos de la WTFPL http://sam.zoy.org/wtfpl/ | |
import twitter | |
api = twitter.api(username = 'twittnic', password = 'insertar la pass') | |
twitteros_nicas = api.GetFriends() | |
mensaje_evil = 'todos son gays!!' | |
for twittero in twitteros_nicas: | |
update = 'd ' + twittero.screen_name + ' ' + mensaje_evil | |
status = api.postUpdate(update) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pkg_resources | |
Command python setup.py egg_info failed with error code 1 | |
Storing complete log in ./pip-log.txt | |
Traceback (most recent call last): | |
File "/home/fitoria/.virtualenvs/hvz+/bin/pip", line 5, in <module> | |
pkg_resources.run_script('pip==0.4.1devdev', 'pip') | |
File "/home/fitoria/.virtualenvs/hvz+/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 448, in run_script | |
entries = dist.get_entry_map(group) | |
File "/home/fitoria/.virtualenvs/hvz+/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 1166, in run_script |