Skip to content

Instantly share code, notes, and snippets.

View macfire's full-sized avatar

MediaFuse macfire

View GitHub Profile
@macfire
macfire / MultiExporter.jsx
Created April 30, 2016 14:47 — forked from TomByrne/MultiExporter.jsx
An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).See http://www.tbyrne.org/export-illustrator-layers-to-svg-files
// MultiExporter.jsx
// Version 0.1
// Version 0.2 Adds PNG and EPS exports
// Version 0.3 Adds support for exporting at different resolutions
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize
// Version 0.5 Fixed cropping issues
// Version 0.6 Added inner padding mode to prevent circular bounds clipping
//
// Copyright 2013 Tom Byrne
// Comments or suggestions to [email protected]
@macfire
macfire / models.py
Created April 25, 2016 18:32 — forked from johnschimmel/models.py
example model with mongoengine and wtforms
# -*- coding: utf-8 -*-
from mongoengine import *
from flask.ext.mongoengine.wtf import model_form
from datetime import datetime
class Comment(EmbeddedDocument):
name = StringField()
comment = StringField()
timestamp = DateTimeField(default=datetime.now())