Skip to content

Instantly share code, notes, and snippets.

View dimitrivdp's full-sized avatar

Dimitri Van de Putte dimitrivdp

  • Antwerp, Belgium
View GitHub Profile
@dimitrivdp
dimitrivdp / MultiExporter.jsx
Created March 3, 2017 20:26 — 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 tom@tbyrne.org
@dimitrivdp
dimitrivdp / Arrays_Examples.coffee
Created January 11, 2012 15:31
Useful CoffeScript Constructs
# map
(item.method() for item in list)
@dimitrivdp
dimitrivdp / ViewExample.coffee
Created November 15, 2011 15:45
Backbone in CoffeeScript Style
class window.MyView extends Backbone.View
tagName: "td"
events:
"click .check" : "toggleDone"
"click .destroy" : "destroy"
initialize: ->
# _.binAll(this, 'render') can be omitted
@model.bind('change', this.render) #use @model instead of this.model
@model.view = this