Skip to content

Instantly share code, notes, and snippets.

@ed-lea
ed-lea / app.coffee
Created August 12, 2015 16:27
modify a value passed in to the extended Layer class
class Main extends Layer
constructor: (options={}) ->
# override Layer default
options.width ?= 200
# introduce the scaling factor
# Using Nexus 5 @3x by default
options.finalScale ?= 3
@ed-lea
ed-lea / app.coffee
Last active August 29, 2015 14:27
Define a new variable in FramerJS Layer class
class Main extends Layer
constructor: (options={}) ->
# override Layer default
options.width ?= 200
# introduce a new property
options.newProperty ?= 123
super options
myLayers = Framer.Importer.load("imported/some-psd")
layer = new Layer();
myLayers.addSubLayer(layer);
# deploy.rb
#
# Multistage Deployment
#
set :stages, %w(production staging)
set :default_stage, "staging"
set :stage_dir, "app/config"
require 'capistrano/ext/multistage'