Skip to content

Instantly share code, notes, and snippets.

View ManuelZ's full-sized avatar

Manuel ManuelZ

View GitHub Profile
@ManuelZ
ManuelZ / resize_images.py
Created December 27, 2018 17:46
Resize images with a width or height larger than certain number of pixels
"""
Resize images with a width or height larger than MAX_SIZE pixels.
BEWARE, it will OVERWRITE images.
Is meant to be used with Python 3.
Call it with:
python resize_images.py --dataset dataset
"""
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs>
<Require feature="views" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<h3>Hubspot Calendar Syncer</h3>
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs>
<Require feature="views" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<h3>Hubspot Calendar Syncer</h3>
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs>
<Require feature="views" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<h3>Hubspot Calendar Syncer</h3>
def es_primo(numero):
for i in range(2, numero):
if numero%i == 0:
return False
return True
lista = []
for i in range (2, 10000):
if es_primo(i):
from distutils.core import setup
setup(name="Aplicacion de ejemplo",
version="0.1",
description="Ejemplo del funcionamiento de distutils",
author="Raul Gonzalez",
author_email="zootropo en gmail",
url="http://mundogeek.net/tutorial-python/",
license="GPL",
scripts=["ejemplo.py"]
py_modules=["apoyo"]
>>> import sys
>>> sys.path
['', '/usr/local/lib/python2.3', '/usr/local/lib/python2.3/plat-linux2',
'/usr/local/lib/python2.3/lib-tk', '/usr/local/lib/python2.3/lib-dynload',
'/usr/local/lib/python2.3/site-packages']
import sys
sys.path.append('/www/python/')