Order of Higher Order Components (HOC) matters

I’ve just learned the hard way that order of calling Higher Order Components (HOC) matters and can lead to hard to debug errors. I’ve used the Redux and React Router Dom. Started with Redux so I had component like so:

import react, {Component} from 'react'
import connect from 'react-redux/lib/connect/connect';

class Home extends Component {
    // ... chopped for brevity
}

export default connect(mapStateToProps)(Home);

Continue reading

Add artboard with JavaScript in Illustrator CS5.1

I’m trying to pull together set of scripts to help with android/ios graphic resources development. I can export artwork to PNG but results due to scaling are not satisfactory. This means that the scaling and adjusting graphic vectors needs to be done by the graphic designer. To help him in this I want to create a script that will produce set of artboards with given name and base dimensions.
Continue reading