Thursday, October 15, 2015

Javascript libraries that work in Illustrator

Some libraries developed for the web also work inside Illustrator. Here is a list:
  • md5.js
  • color.js
  • handlebars.js
  • moment.js
  • underscore.js
  • json2.js
  • chroma.js
  • numeral.js
  • sylvester.js
In some case they might not work out of the box because nested three-way assignments don’t work. This

return a ? b ? 0 : -j : i;

needs to be edited as

return a ? (b ? 0 : -j) : i;

It just takes some patience.

Wednesday, June 10, 2015

LaTeX, Gnumeric and Inkscape on Heroku

Sometimes my web apps require Linux desktop applications, such as Inkscape, or Gnumeric, or LaTex.

They are easy to deploy thanks to ddollar's apt buildpack.

Sizes seem to be no problem, as a XeTeX slug sizes at 162.6 Mb, one focused on image processing (ImageMagick and Inkscape) at 221.8 Mb, and adding Gnumeric does not seem to add to the size (which seems wrong).

Now I can use these applications on Heroku - for example for converting Excel spreadsheets (via ssconvert) or converting SVG (inkscape).