Skip to content

Instantly share code, notes, and snippets.

View Jaciones's full-sized avatar

Jason Malcolm Jaciones

View GitHub Profile
@Jaciones
Jaciones / phantomsjs_example.js
Created December 4, 2015 17:27
Example PhantomJS render.js
var fs = require('fs');
var page = require('webpage').create(),
system = require('system');
if (system.args.length <= 3) {
console.log('Must have url and output_path!');
} else {
var url = system.args[1],
output_path = system.args[2],
page_width = system.args[3] || 1024;
@Jaciones
Jaciones / sample_post.js
Created October 27, 2011 01:11
Sample post
in : {
src : 'http://www.google.com/logos/2011/houdini11-hp.jpg',
processes : [{
name: 'crop',
params : { x: 5, y: 5, width: 100, height: 100 },
out : { type: "temp_url" }
}]
}