Skip to content

Instantly share code, notes, and snippets.

View pavelvlasov's full-sized avatar

Pavel Vlasov pavelvlasov

View GitHub Profile
'use strict';
const {promisify} = require('util');
const request = promisify(require('request'));
const Promise = global.Promise;
const getPullRequestsQuery = (owner, name) => {
return `
query GET_REVIEWS_QUERY {
repository(owner:"${owner}", name:"${name}") {
@pavelvlasov
pavelvlasov / screenshot.js
Created January 20, 2018 23:53
render html into png image with phantomjs
'use strict';
var system = require('system');
var html = system.args[1];
var width = system.args[2];
var height = system.args[3];
var page = require('webpage').create();