I hereby claim:
- I am bastien on github.
- I am bastienvaucher (https://keybase.io/bastienvaucher) on keybase.
- I have a public key ASC_XHwPma-pdBBuqEnkgagn0QCYc2ZNv3G84sLxNB7ajQo
To claim this, I am signing this object:
var doc = app.activeDocument; | |
var docPath = doc.fullName; | |
var importDoc = app.open(File('~/test_extract.indd'), false); | |
var pageToImport = importDoc.pages.firstItem(); | |
importDoc.pages.add(LocationOptions.AT_END); // Documents must have at least 1 page | |
pageToImport.move(LocationOptions.AFTER, doc.pages.firstItem()); | |
doc.pages.item(2).remove(); | |
importDoc.close(SaveOptions.no); |
var doc = app.activeDocument; | |
var page = doc.pages[0]; | |
var page_ids = [page.name]; | |
var text_frames = page.textFrames; | |
for(var i=1; i<=text_frames.length; i++){ | |
var text_frame = page.textFrames[0]; | |
var threaded_text_frames = text_frame.parentStory.textContainers; | |
for(var j=1; j<= threaded_text_frames.length; j++){ | |
var threaded_text_frame = threaded_text_frames[j-1]; | |
if(!inArray(threaded_text_frame.parentPage.name, page_ids)){ |
# Model using the ghostscript processor | |
class Content < ActiveRecord::Base | |
has_attached_file :resource, | |
:styles => { :preview => ["725x1200>", :jpg], :thumb => ["100x140>", :jpg] }, | |
:processors => [:ghostscript, :thumbnail], | |
:convert_options => { :all => '-colorspace RGB -flatten -density 300 -quality 100' }, | |
:path => ":page_path/:class/:id/:resource_token/:style/:filename" | |
end |
var obj = {}; | |
var param1 = "monkey[foo][bar][test1]"; | |
var param2 = "monkey[foo][foo][test2]"; | |
var keys1 = param1.replace(/\]/g, '').split('['); | |
var keys2 = param2.replace(/\]/g, '').split('['); | |
var deserialize = function(obj, keys, value){ | |
var pointer = obj; | |
var index = 0; |
I hereby claim:
To claim this, I am signing this object:
EMAIL={admin-email} | |
PASSWORD={admin-password} | |
SUBDOMAIN={your-subdomain} | |
SECTIONID={some-id} | |
PERMISSIONGROUPID={permssion-group-id} | |
FILENAME={relative-path-to-file-to-upload} | |
LOCALE={locale} | |
ZENDESKDOMAIN=zendesk.com |