Skip to content

Instantly share code, notes, and snippets.

View mvidalgarcia's full-sized avatar
🐛
Feeding bugs

Marco Vidal García mvidalgarcia

🐛
Feeding bugs
View GitHub Profile
@mvidalgarcia
mvidalgarcia / regform_fix.py
Last active April 26, 2017 08:05 — forked from pferreir/regform_fix.py
regform_fix.py
from sqlalchemy.orm.attributes import flag_modified
import uuid
lst = []
for reg_item in RegistrationFormItem.find(input_type='accommodation', is_deleted=False):
choice_id = unicode(uuid.uuid4())
needs_caption = False
for rffd in RegistrationFormFieldData.find(field_id=reg_item.id):
@mvidalgarcia
mvidalgarcia / python-pil-image-sprite.py
Created July 18, 2018 13:24 — forked from gourneau/python-pil-image-sprite.py
Make sprites of images using Python and PIL
#!/usr/bin/python
# This work is licensed under the Creative Commons Attribution 3.0 United
# States License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by/3.0/us/ or send a letter to Creative
# Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
# from http://oranlooney.com/make-css-sprites-python-image-library/
# Orignial Author Oran Looney <[email protected]>