Skip to content

Instantly share code, notes, and snippets.

View GregHilston's full-sized avatar

Greg Hilston GregHilston

View GitHub Profile
@GregHilston
GregHilston / gist-to-png.js
Last active April 18, 2018 18:25 — forked from fgeorges/blog--gist-to-png-01.js
This Gist assists you in creating a screen shot of a Gist. I use it to post screen shots on LinkedIn.
#!/usr/local/bin/phantomjs
var page = require('webpage').create();
var system = require('system');
// ***** Argument handling
function isInt(value) {
return !isNaN(value) &&
parseInt(Number(value)) == value &&