Skip to content

Instantly share code, notes, and snippets.

View Blackmist's full-sized avatar

Larry Franks Blackmist

  • Microsoft
  • Belmont, NC
View GitHub Profile
function exportFileToPNG(dest, artBoardIndex)
{
var exportOptions = new ExportOptionsPNG24(); // or ExportOptionsPNG8
var type = ExportType.PNG24; // or ExportType.PNG8
var file = new File(dest + ".png");
exportOptions.artBoardClipping = true;
exportOptions.antiAliasing = true;
exportOptions.transparency = true;
exportOptions.qualitySetting = 72;
@seancribbs
seancribbs / gist:1359079
Created November 11, 2011 20:08
Combining Roar with Webmachine.
require 'bundler/setup'
require 'roar/representer/json'
require 'roar/representer/feature/hypermedia'
require 'webmachine'
class Product
include Roar::Representer::JSON
include Roar::Representer::Feature::Hypermedia
property :name