This file contains 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 wand.image import Image | |
with Image(file=file) as img: | |
x = 275 | |
y = 275 | |
img.resize(x, y) | |
with open('path/filename_already_exists.png', 'wb') as f: | |
img.save(file=f) |
This file contains 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
# htmlfill | |
with app.test_request_context('/'): | |
html = render_template_string(''' | |
{%- autoescape true -%} | |
{%- form 'user.signup' with {'a': 123, 'b': 456} -%} | |
<input type="number" name="a"> {{- '' -}} | |
<input type="number" name="b" value="2"> {{- '' -}} | |
<input type="number" name="c" value="3"> | |
{%- endform -%} | |
{%- endautoescape -%} |
This file contains 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
div { | |
@each $_vp in '', -moz-, -webkit-, -ms-, -o- { | |
#{$_vp}transition-property: box-shadow; | |
#{$_vp}transition-duration: 2s; | |
#{$_vp}transition-timing-function: ease-out; | |
} | |
} |
This file contains 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
heroku == 0.1.2 |
This file contains 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
.*.swp | |
*.pyc |
This file contains 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
""":mod:`sqla_intlist` --- Portable integer list type for SQLAlchemy | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
See the docstring of :class:`IntegerList` type. | |
""" | |
import collections | |
import io | |
from sqlalchemy.dialects.postgresql import ARRAY |
This file contains 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 ctypes | |
from wand.api import library | |
from wand.color import Color | |
library.PixelGetRedQuantum.argtypes = [ctypes.c_void_p] | |
library.PixelGetRedQuantum.restype = ctypes.c_size_t | |
library.PixelGetGreenQuantum.argtypes = [ctypes.c_void_p] |
This file contains 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 flask import current_app, request, url_for | |
from formencode.htmlfill import render | |
from formencode.api import Invalid | |
from jinja2 import Markup, Undefined | |
from jinja2.exceptions import TemplateSyntaxError | |
from jinja2.ext import Extension | |
from jinja2.nodes import (Const, Filter, FilterBlock, Keyword, Output, | |
TemplateData) | |
from werkzeug.utils import escape |
This file contains 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
MIME-Version: 1.0 | |
Date: Thu, 16 May 2013 14:48:35 +0100 | |
From: Nicolas de Bari Embriz Garcia Rojas <[email protected]> | |
List-Archive: <http://librelist.com/archives/wand/> | |
List-Id: [email protected] | |
List-Post: <mailto:[email protected]> | |
Reply-To: [email protected] | |
Sender: [email protected] | |
Subject: [wand] how to crop defining -gravity and -extent etc | |
To: [email protected] |
This file contains 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
.*.swp | |
*.pyc | |
credentials.ini |